每天學習乙個linux命令 more檢視文件

2021-10-05 11:10:34 字數 1269 閱讀 7577

執行環境:ubuntu 16.04.6 lts

usage:

more [options] ...

a file perusal filter for crt viewing.

options:

-d display help instead of ringing bell//d 提示使用者,在畫面下方顯示 [press space to continue, 'q' to quit.] ,如果使用者按錯鍵,則會顯示 [press 'h' for instructions.]

-f count logical rather than screen lines//計算行數時,以實際上的行數,而非自動換行過後的行數(有些單行字數太長的會被擴充套件為兩行或兩行以上)

-l suppress pause after form feed//

-c do not scroll, display text and clean line ends//不以捲動的方式顯示每一頁,而是先清除螢幕後再顯示內容

-p do not scroll, clean screen and display text//跟 -p 相似,不同的是先顯示內容再清除其他舊資料

-s squeeze multiple blank lines into one//當遇到有連續兩行以上的空白行,就代換為一行的空白行

-u suppress underlining//不顯示下引號 (根據環境變數 term 指定的 terminal 而有所不同)

-the number of lines per screenful//一次顯示的行數number

+display file beginning from line number//從第 number 行開始顯示

+/display file beginning from search string match//在每個文件顯示前搜尋該字串(string),然後從該字串之後開始顯示

-v display version information and exit// 顯示版本號

more -d 檔名
當按錯鍵後會提示如下資訊:

參考:

每天學習乙個Linux命令 目錄

閱讀目錄 content 1.竹子 部落格 2.菜鳥教程 3.其他網際網路資料,google,baidu等搜尋引擎 1.linux每日命令 1 ls命令 2.linux每日命令 2 cd命令 3.linux每日命令 3 in命令 4.linux每日命令 4 pwd命令 5.linux每日命令 5 m...

Linux每天學習乙個命令之type命令

今天看到了type命令覺得和which命令很像,所以想著學習記錄一下。回想起之前使用which命令的時候,當檢視cd命令,history命令的時候,會出現這句話 root localhost which history usr bin which no history in usr local sb...

Linux每天學習乙個命令之cp命令

最近學習linux中的複製檔案命令cp,把學習記錄如下 cp 選項 source 檔案 destination 目的檔案 cp 選項 source1 source2 source3 source4 source5 directory cp命令可以複製檔案或資料夾,後面可以接多個原始檔 當有多個原始檔...