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--
Introduction to 1.more command
More command, function is similar to cat, cat command is the contents of the entire file is displayed from top to bottom on the screen. 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.
2.more 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. Common command parameters
+ n starts with line n.
-n defines the screen size as n lines
-c clear the screen from the top and display
4. Common operation commands:
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
5. Command example:
Example 1: find the first line where the "systemd" string appears in the file, and display the output from the first two lines there
Command: more + / systemd passwd
Example 2: set the number of rows per screen to 5
Command: more-5 passwd
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.