In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how to use the Linux head command, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Linux head command article. Let's take a look at it.
The Linux system head command is mainly used to view the contents at the beginning of the file. The parameter-n is used to display the number of lines. The default is 10, that is, 10 lines.
Syntax head [parameters] [file]
Parameter-n,-lines= [-] K k, displays the first k line at the beginning of the document,-k, does not display the last k line at the end of the document-c,-bytes= [-] K k, displays the first k bytes at the beginning of the document -k, does not display the last k bytes at the end of the document-Q,-quiet,-silent does not display the header containing the given file name-v,-verbose always displays the header containing the given file name-help displays this help information and exits-version displays version information and exits
Instance displays the contents of the file by default, the first 10 lines of the file are displayed by default
Head / etc/man.config displays the first 20 lines of the file
Head-n 20 / etc/man.config or head-20 / etc/man.config displays the contents of the last 100 lines of the file, but not the last 100 lines of the file.
This is the end of the article head-n-100 / etc/man.config on "how to use the Linux head command". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use Linux head commands". If you want to learn more, you are 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.