Home >System Tutorial >LINUX >How to use the common Linux command more
Linux more command is used to display the file content page by page. Common parameters include: -d: display page number and percentage -e: automatic scrolling -f: continuous display -p: start displaying from the specified line number -s: How to use to compress empty lines: more [parameter] [file name] Press the space bar to turn pages, b key to go back and enter d to display the page number, enter e to automatically scroll, enter f to display continuously, use -p to start displaying from a specific line number
Linux more command
Purpose:
View the file content and display it page by page.
Syntax:
<code>more [参数] [文件名]</code>
Common parameters:
Usage:
more File name
d
. e
. f
. -p
parameter, such as more -p 100 file name
Start displaying from line 100. Example:
View the /etc/passwd
file and display the page number:
<code>more -d /etc/passwd</code>
View in auto-scroll mode/var/log/messages
File:
<code>more -e /var/log/messages</code>
Start viewing at line 50/ home/user/myfile.txt
File:
<code>more -p 50 /home/user/myfile.txt</code>
The above is the detailed content of How to use the common Linux command more. For more information, please follow other related articles on the PHP Chinese website!