如何按照 man 檔案中的描述轉到第 N 個檔案

如何按照 man 檔案中的描述轉到第 N 個檔案

我喜歡用它less來瀏覽文件。我經常喜歡移動多個文件。

在 man 檔案中,它說可以向前移動 N 個檔案:

:n     Examine the next file (from the list of files given in the command line).  If a number N
       is specified, the N-th next file is examined.

我如何指定這個數量 N移動到第 N 個下一個文件?我已經嘗試了一切,但無法弄清楚。

答案1

正如 StackExchange 網路上的這些答案所述:

必須在命令之前輸入數字;若要跳過兩個文件,請按 ,3:n然後按Enterhttps://unix.stackexchange.com/a/676818/377222

另一個有用的答案https://superuser.com/a/1254274/1056672

注意:您實際上必須為這些命令鍵入 : (即使已經有一個可見的冒號)。

:n jump to next file
:p jump to previous file
:x jump to first file

3:n jump 3 files ahead
3:p jump 3 files back
3:x jump to 3rd file

:f print current file name/info (helpful if you forget where you are) 

相關內容