Ubuntu_翻页时不能看到全部内容
来源:互联网 发布:nginx 负载均衡 编辑:程序博客网 时间:2024/04/30 20:38
转载自:http://forum.ubuntu.org.cn/viewtopic.php?f=169&t=274854
[command] | less
during you reading Terminal, you can up or down that :use N, n (click in your keyboard)
(if you said that "read" is what you done of commands :use history , and add ! to run that again)
but you must want to fine some words, but true alright :use / , ? (click in your keyboard)
that's better then | more, because "command more" cannot put that page up when you are read it
and detail, for flipping:
== more ==
(一頁一頁翻動)
空白鍵 (space):代表向下翻一頁;
Enter :代表向下翻『一行』;
/字串 :代表在這個顯示的內容當中,向下搜尋『字串』這個關鍵字;
:f :立刻顯示出檔名以及目前顯示的行數;
q :代表立刻離開 more ,不再顯示該檔案內容。
b 或 [ctrl]-b :代表往回翻頁,不過這動作只對檔案有用,對管線無用
== less ==
(一頁一頁翻動)
空白鍵 :向下翻動一頁;
[pagedown]:向下翻動一頁;
[pageup] :向上翻動一頁;
/字串 :向下搜尋『字串』的功能;
?字串 :向上搜尋『字串』的功能;
n :重複前一個搜尋 (與 / 或 ? 有關!)
N :反向的重複前一個搜尋 (與 / 或 ? 有關!)
q :離開 less 這個程式;
== head ==
[-n number] 檔案
選項與參數:
-n :後面接數字,代表顯示幾行的意思
另外那個 -n 選項後面的參數較有趣,如果接的是負數,例如上面範例的-n -100時,代表列前的所有行數, 但不包括後面100行。舉例來說,/etc/man.config共有141行,則上述的指令『head -n -100 /etc/man.config』 就會列出前面41行,後面100行不會列印出來了。這樣說,比較容易懂了吧? ^_^
== tail ==
[-n number] 檔案
選項與參數:
-n :後面接數字,代表顯示幾行的意思
-f :表示持續偵測後面所接的檔名,要等到按下[ctrl]-c才會結束tail的偵測
範例一:如果不知道/etc/man.config有幾行,卻只想列出100行以後的資料時?
[root@www ~]# tail -n +100 /etc/man.config
範例二:持續偵測/var/log/messages的內容
[root@www ~]# tail -f [[/var/log/messages]]
0 0
- Ubuntu_翻页时不能看到全部内容
- LinearLayout不能显示全部内容
- android listview嵌套Listview不能显示全部内容
- 微信里经常看到的滑动翻页效果,slide,翻页slide
- 不能翻页的错误总结
- SSH框架分页不能翻页
- PPT突然不能翻页了
- ajax异步加载使用post方法时一直输出相同结果,不能实现翻页
- 转:不能翻页的错误总结
- easyui datagrid翻页不能搜索问题
- Ubuntu_系统管理
- ubuntu_系统维护
- ubuntu_细节
- ubuntu_相关
- Ubuntu_远程管理
- Ubuntu_下载工具
- Ubuntu_网络
- 在开发iMatrix平台项目时不能看到注册小窗体按钮的原因是什么呢?
- JSP使用JDBC调用mysql数据库
- String concatenation
- [Linux]ubuntu 下安装NVIDIA显卡驱动出现X service error问题解决方法
- SIFT算法详解
- 解决 WindowsError: [Error 87]
- Ubuntu_翻页时不能看到全部内容
- zTree异步展开父节点并选中指定子节点
- 追梦赤子心
- What Is Apache Hadoop?
- Tongji OJ Problem A - A
- JavaScript快速入门
- LeetCode || Unique Paths
- Storm 0.9.0中trident的Spout接口变化
- Storm之trident序列化问题