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 > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the Linux tree command". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use the Linux tree command.
The original name of tree means tree. In Linux system, the tree command is mainly used to display the disk directory structure as a tree structure.
TREE-- display disk directory structure command
Function: displays all directory paths on the specified drive and all file names under these directories.
1.tree-everything in the current directory is displayed
Lwnyls@lwnyls-desktop:/usr$ tree2.tree-L level- only displays the directory structure of the specified maximum depth under the current directory
Lwnyls@lwnyls-desktop:/usr$ tree-L 1. ├── bin ├── games ├── include ├── lib ├── lib32 local sbin ├── share └── src 9 directories, 0 files lwnyls@lwnyls-desktop:/usr$3.-d displays the directory name instead of the content.
Lwnyls@lwnyls-desktop:~/VirtualBox VMs$ tree-d. ├── win7 │ └── Logs ├── winxp │ ├── Logs │ └── Snapshots └── xp2 └── Logs 7 directories lwnyls@lwnyls-desktop:~/VirtualBox VMs$4.-f displays the full relative path name before each file or directory.
Lwnyls@lwnyls-desktop:~/VirtualBox VMs$ tree-f. ├──. / win7 │ ├──. / win7/Logs │ │ ├──. / win7/Logs/VBox.log │ │ ├──. / win7/Logs/VBox.log.1 │ │ ├──. / win7/Logs/VBox.log.2 │ │ └──. / win7/Logs/VBox.log.3 │ ├──. / win7/win7.vbox │ └─ ─. / win7/win7.vbox-prev ├──. / winxp │ ├──. / winxp/Logs │ │ ├──. / winxp/Logs/VBox.log │ │ ├──. / winxp/Logs/VBox.log.1 │ │ ├──. / winxp/Logs/VBox.log.2 │ │ └──. / winxp/Logs/VBox.log.3 │ ├──. / winxp/Snapshots │ ├──. / winxp/winxp.vbox │ ├──. / winxp/winxp.vbox-prev │ └──. / winxp/winxp.vdi └──. / xp2 ├──. / xp2/Logs │ ├──. / xp2/Logs/VBox.log │ ├──. / xp2/Logs/VBox.log.1 │ ├──. / xp2/Logs/VBox .log.2 │ └──. / xp2/Logs/VBox.log.3 ├──. / xp2/xp2.vbox ├──. / xp2/xp2.vbox-prev └──. / xp2/xp2.vdi 7 directories 20 files lwnyls@lwnyls-desktop:~/VirtualBox VMs$5.-t sorts by the change time of files and directories.
Lwnyls@lwnyls-desktop:~/VirtualBox VMs$ tree-t. ├── winxp │ ├── winxp.vdi │ ├── Logs │ │ ├── VBox.log │ │ ├── VBox.log.1 │ │ ├── VBox.log.2 │ │ └── VBox.log.3 │ ├── winxp.vbox winxp.vbox-prev Snapshots xp2 xp2.vbox Xp2.vbox-prev │ ├── xp2.vdi │ └── Logs │ ├── VBox.log │ ├── VBox.log.1 │ ├── VBox.log.2 │ └── VBox.log.3 └── win7 ├── win7.vbox ├── win7.vbox-prev └── Logs ├── VBox.log ├── VBox.log. 1 ├── VBox.log.2 └── VBox.log.3 7 directories 20 files lwnyls@lwnyls-desktop:~/VirtualBox VMs$ Thank you for your reading The above is the content of "how to use the Linux tree command". After the study of this article, I believe you have a deeper understanding of how to use the Linux tree command, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.