更高效的使用Linux下的more命令
阿新 • • 發佈:2019-01-28
Most commands optionally preceded by integer argument k. Defaults in brackets.
Star (*) indicates argument becomes new default.
-------------------------------------------------------------------------------
<space> Display next k lines of text [current screen size]
z Display next k lines of text [current screen size]*
<return> Display next k lines of text [1]*
d or ctrl-D Scroll k lines [current scroll size, initially 11]*
q or Q or <interrupt> Exit from more
s Skip forward k lines of text [1]
f Skip forward k screenfuls of text [1]
b or ctrl-B Skip backwards k screenfuls of text [1]
' Go to place where previous search started
= Display current line number
/<regular expression> Search for kth occurrence of regular expression [1]
n Search for kth occurrence of last r.e [1]
!<cmd> or :!<cmd> Execute <cmd> in a subshell
v Start up /usr/bin/vi at current line
ctrl-L Redraw screen
:n Go to kth next file [1]
:p Go to kth previous file [1]
:f Display current file name and line number
. Repeat previous command
-------------------------------------------------------------------------------
翻譯:
Most commands optionally preceded by integer argument k. Defaults in brackets.
Star (*) indicates argument becomes new default.
大多數命令可以有選擇的使用前導的整數引數k。[預設值],k的預設值在[]中。
星號(*)表明引數成為的新的預設值。
-------------------------------------------------------------------------------
<space> Display next k lines of text [current screen size]
<空格鍵>顯示(當前行)後面的k行文字,[引數預設值:當前螢幕的尺寸大小]
z Display next k lines of text [current screen size]*
z 顯示(當前行)後面的k行文字,[引數預設值:當前螢幕的尺寸大小]*
<return> Display next k lines of text [1]*
<回車鍵>顯示(當前行)下面的k行文字;[預設值為1]
d or ctrl-D Scroll k lines [current scroll size, initially 11]*
d或者ctrl+D (從當前行)回滾k行文字,[當前的回滾大小, 初始值為11]
q or Q or <interrupt> Exit from more
q 或者 Q 或者<中斷鍵:ctrl-c> 從more退出
s Skip forward k lines of text [1]
s (從當前行)向前跳過K行文字,[預設值為1]
f Skip forward k screenfuls of text [1]
f (從當前行)向前跳過 k螢幕的文字 [預設值為1]
b or ctrl-B Skip backwards k screenfuls of text [1]
b or ctrl-B (從當前行)往後(回)跳過 k螢幕文字 [預設值為1]
'(single quotes) Go to place where previous search started
' (單引號) (從當前行)回到先前開始搜尋的地方
= Display current line number
= 顯示當前行號
/<regular expression> Search for kth occurrence of regular expression [1]
/<正則表示式、模式> 查詢正則表示式第k次發生的位置 [預設值為1]
n Search for kth occurrence of last r.e [1]
n 查詢自從上次正則匹配往後的k次匹配的位置 [預設值為1] (next)
!<cmd> or :!<cmd> Execute <cmd> in a subshell
!<cmd> 或者 :!<cmd> 在子shell中執行 cmd命令
v Start up /usr/bin/vi at current line
v 在當前行啟動 /usr/bin/vi
ctrl-L Redraw screen
ctrl-l 重繪螢幕
:n Go to kth next file [1]
:n 跳到當前檔案後面的第k個檔案 [預設值是1]
// touch {1,2,3,4,5,6,7,8,9,10}.txt
// more *.txt
:p Go to kth previous file [1]
:p跳回到當前檔案前面的第k個檔案 [預設值為1]
:f Display current file name and line number
:f 顯示當前的檔案的檔名和行號(游標所在行)
. Repeat previous command
. (dot) 重複上一個命令(相當於一個巨集命令)
-------------------------------------------------------------------------------