In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the linux how to view the number of files of the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe that everyone after reading this linux how to check how many documents the article will have a harvest, let's take a look.
In linux, you can use the ls command to see how many files there are. This command is used to display the contents of the specified directory. When the parameter is set to "wc-c", the number of files under the directory can be displayed with the syntax of "ls directory path | wc-c". You can use "sudo ls / * | wc-c" to view the number of directories on the entire computer.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How does linux check how many files there are?
If you are looking at the number of directories on your computer, enter the command:
Ls / * | wc-c
If you want to see the files in a directory, you can nest the command. That is, add the directory path after [ls]. For example, the root directory here [[ls / | wc-c].
Examples are as follows:
If you are looking at the number of directories on your computer, enter the command:
Sudo ls / * | wc-w
At this time, all the directories on the computer will be listed.
Parsing:
Ls the current directory, give the wc command, and-w represents words, so this command counts the current files and folders
Examples are as follows:
This is the end of the article on "how many files are checked by linux". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how many documents are checked by linux". 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.