In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to use the more command on a Linux system? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
More is one of our most commonly used tools. The most common tool is to display the output, then page it according to the size of the window, and then prompt the percentage of the file.
The more function is similar to cat, where the cat command displays the contents of the entire file on the screen from top to bottom. More will be a page-by-page display to facilitate users to read page by page, and the most basic instruction is to press the blank key (space) to display to the next page, press the b key to go back to (back) a page to display, and has the function of searching for strings. The more command reads the file back and forth, so the entire file is loaded at startup.
1. Command format:
More [- dlfpcsu] [- num] [+ / pattern] [+ linenum] [file...]
2. Command function:
The more command is the same as cat's function is to view the contents of the file, but the difference is that more can view the contents of the file by page, but also supports direct jump line and other functions.
3. Command parameters:
Linuxidc@linuxidc:~/ Desktop / Linux Commune $more-help
Usage:
More [options]...
A file reading and output tool suitable for screen viewing.
Options:
-d shows help instead of ringing
-f calculates the number of logical lines, not the number of screen lines
-l block pause after page change (form feed)
-c do not scroll, display the text and clean up the end of the line
-p does not scroll, clears the screen and displays text
-s compresses multiple blank lines into one line
-u shielded underline
-rows per screen
+ display the file from the specified line
+ / display the file from the location that matches the search string
-- help display this help
-V-- version display version
See more (1) for more information.
Linuxidc@linuxidc:~/ Desktop / Linux Commune $
Example
Displays the contents of the linuxidc document page by page, or as a blank line if there are two consecutive lines with white lines above.
More-s linuxidc
Start at line 20 to display the document contents of the linuxidc.
More + 20 linuxidc
Common operation command
Enter goes down n lines and needs to be defined. The default is 1 line
Ctrl+F scrolls down one screen
The space bar scrolls down one screen
Ctrl+B returns to the previous screen
= output the line number of the current line
: F output file name and line number of the current line
V calls the vi editor
! Command invokes Shell and executes the command
Q exit more
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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
© 2024 shulou.com SLNews company. All rights reserved.