English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux more Befehl

Linux Command大全

Der Linux more-Befehl ähnelt cat, zeigt jedoch in Form von Seiten an, was den Benutzer beim Lesen auf einer Seite einfacher macht, und die grundlegenden Befehle sind, die Leertaste (space) zu drücken, um zur nächsten Seite zu gelangen, die Taste b zu drücken, um eine Seite zurückzugehen, und die Funktion zur Suche nach Zeichenfolgen (ähnlich wie in vi), die aktuelle Anleitungsdokumentation wird mit h aufgerufen.

Syntax

more [-dlfpcsu] [-num] [+/pattern] [+linenum] [fileNames..]

Parameter:

  • -Anzahl der angezeigten Zeilen
  • -Hinweis für den Benutzer, dass unterhalb des Bildschirms [Drücken Sie die Leertaste, um fortzufahren, 'q' zum Beenden.] angezeigt wird, wenn der Benutzer die falsche Taste drückt, wird [Drücken Sie 'h' für Anweisungen.] anstatt des '哔' -Tons angezeigt
  • -l Cancel the function to pause when encountering special characters ^L (carriage return character)
  • -f When counting lines, count the actual number of lines, not the number of lines after automatic line break (some single lines may be expanded to two lines or more)
  • -p Do not display each page in the scrolling mode, but clear the screen first and then display the content
  • -c Follow -p Similar, but first display the content and then clear other old data
  • -s Replace consecutive two or more blank lines with one blank line
  • -u Do not display the quotation marks (depending on the terminal specified by the environment variable TERM)
  • +/pattern Search for the string (pattern) before each document is displayed, and then start displaying from the string.
  • +num Start displaying from the num line
  • fileNames The document to be displayed, can be multiple.

Online Examples

Display the document content of testfile page by page. If there are two or more consecutive blank lines, they are displayed as one blank line.

more -s testfile

From the 20 Start displaying the document content of testfile from the first line.

more +20 testfile

Common Operation Commands

  • Enter Scroll down n lines, needs definition. Default is1Line
  • Ctrl+F Scroll down one screen
  • Space key Scroll down one screen
  • Ctrl+B Return to previous screen
  • = Output current line number
  • :f Output filename and current line number
  • V Call vi editor
  • !Command Call Shell and execute command
  • q Exit more

Linux Command大全