In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
More
The content of the long text file is displayed on screen, and the positioning keyword is supported.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
More [- dlfpcsu] [- num] [+ / pattern] [+ linenum] [file...]
2. List of commands and options
Option
Description
-- version
Display command version information
-- help
Show help documentation
-num
Number of rows displayed per page
-d
Display the description on the last line
-l
It is more common to treat ^ L (form feed) as a special character and pause after any line that contains the form feed. The-l option prevents this behavior.
-f
Only deal with normal lines, not those that are too long
-p
Do not scroll, clear the screen to display text
-c
Do not scroll, clear the screen to show a new page
S
Merge multiple blank lines
-u
Press the underline
+ /
Find a string before display
+ num
Display from line num
After using the more instruction, the screen enters the command mode of more, and we need some commands to see everything.
Command
Description
H |?
Display help information
Space
The following lines are displayed. The default is to scroll one screen.
Z
Show the next k-line text. Default is the current screen size. Parameter becomes the new default.
Enter
Show the following lines, which are one by default
D | ^ D
Scroll a few lines to initialize 11
Q | Q
Quit
S
Skip the first few lines. The default is 1.
F
Skip the first few screens. Default is 1.
B or ^ B
Skip k text screens. The default is 1. Applies only to files, not pipes.
Go to the place where the search started
=
Show current line number
! Or:!
Execute instruction
V
Start the editor on the current line. If the environment variable VISUAL is defined, the editor is obtained from the environment variable; if VISUAL is not defined, it is obtained from EDITOR; if no visualization or editor is defined, the default is "vi".
^ L
Redraw the screen
: n
Jump to the nth file below, default 1
: p
Jump to the previous nth file, default 1
: f
Displays the current file name and line number
.
Repeat the previous command
/ string
Find the string, look at the tail
? String
Look for a string, look for a header
3. Examples
With more, the pipe displays the description of the more instruction at the bottom.
[root@localhost weijie] # less / etc/httpd/conf/httpd.conf
Alsa-info
Alsa-info.sh
Alsaloop
Alsamixer
Amidi
Amixer
AmuFormat.sh
Anthy-agent
-- More-- [Press space to continue,'q' to quit.]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
To solve the repeated practice, just reinstall the KIS client.
© 2024 shulou.com SLNews company. All rights reserved.