In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces what the linux command to open the file is, the article is very detailed, has a certain reference value, interested friends must read it!
Linux open file commands are: 1, cat command, used to view the contents of the file; 2, tac command, from the last line to display; 3, nl command, output line number when displayed; 4, more command, used to display the contents of the file page by page, and so on.
After opening the terminal program, directly use the cat command to view the contents of the file sample. Just type cat sample.txt at the prompt and press Enter. The function of the cat command is to display the full contents of the file starting from the first line.
Under the Linux system, there are many commands that can view the contents of a text file, such as commands such as cat/tac/nl/more/less/head/tail. In addition to the functions of the above cat commands:
1 tac tac: starting from the last line, you can see that the alphabetical order of tac is opposite to that of cat
2dint NL: output the line number when displayed.
3 more: display the contents of a file page by page
4 less is similar to more, but it can turn the page forward
5 focus head: just look at the first few lines
6pm tail: just look at the last few lines
7maginod: reads files in a binary way.
The above are all the contents of the linux command to open the file, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.