Linux basic commands -more

more command

The more command is based vi editor text filter, it displays the contents of a text file by pages in full screen, and supports keyword-targeted operation in vi. more built-in list of a number of shortcut keys, commonly used H (to get help), Enter (scroll down one line), space (scroll down a screen), Q (Exit command).

The command text one screen, the full screen to stop, and a message appears the percentage gives the document has been displayed at the bottom of the screen: - More - (XX%) by the following various methods can be to answer the prompt:

  • Press Space: Displays the next screen content of the text.
  • Press Enier key: only text contents of the next line.
  • Press slash |: then enter a mode, a search for the next match in the text mode.
  • Press H: Displays help screen, relevant help information on the screen.
  • Press B: content displayed on a screen.
  • Press Q: Quit rnore command.

grammar

More (grammar) (parameter)

 

Options
- <number> : Number of lines per screen display;
 -d: Display "[Space Press to Continue, ' Q ' to quit.]" And "[Press ' H '  for Instructions]";
- C: not scrolled operating. Each refresh the screen;
 - S: compressing a plurality of blank lines into the line display;
 - U: prohibit underlined;
 + <number>: Displays the specified number of lines.

parameter

File: Specifies the page display file contents.

Examples

Display file file contents, but before the first clear display screen, and displays the percentage complete core at the bottom of the screen.

more -dc file
Display file contents of the file, once every 10-line display, and clear the screen before displaying.
more -c -10 file

 

Guess you like

Origin www.cnblogs.com/lj7xun/p/10983320.html