One, more commands
More features like cat, the Cat command is the contents of the file are completely displayed on the screen from top to bottom. More will be a page-by-page display to facilitate users to read pages, and the most basic instruction is to press the blank key (space) on the next page, press the B key will be back to a page, but also the function of the search string. The more command reads the file backwards from the front, so it loads the entire file at startup.
1. Command format:
more [-DLFPCSU] [-num] [+/pattern] [+ linenum] [file ...]
2. Command parameters:
+n starting from joys N rows
-N defines the screen size as n rows
+/pattern searches for the string before each file is displayed, and then starts from the first two lines of the string
-C clear the screen from the top and then display
-D hint "press space to continue, ' Q ' To quit (press SPACEBAR to continue, pressing Q key to exit)", disable the ringing function
-L ignores Ctrl+l (page break) characters
-p to page a file by clearing the window instead of scrolling, similar to the-C option
-S displays a contiguous number of empty rows as a row
-U Remove the line from the contents of the file
3. Common Operation Commands:
Enter down n rows, which need to be defined. Default is 1 rows
CTRL+F Scroll down one screen
Space bar scroll down one screen
Ctrl+b Back to previous screen
= Output the line number of the current line
: F output File name and line number of the current line
V Call VI Editor
command to invoke the shell and execute the command
Q Exit More
This article is from the "10858195" blog, please be sure to keep this source http://10868195.blog.51cto.com/10858195/1942006
Linux Basic Command--more