02-Windows and Linux command under the File tree

 When many files contained in a source or a download folder, using the file tree view commands can clearly see what the current folder are files, we view the command to the file tree under both Windows and Linux operating systems about.

1. Windows file tree view under

 First look at Windows file tree view commands. Press the shortcut key win + R & lt , output cmd open command window, as shown below.
Here Insert Picture Description
 In the English input mode, the input disk and a colon symbol can enter the command line to the appropriate disk, for example, F.: . And then use the cd command to switch to a different folder (directory), go to the directory you want to see enter the command:

tree > list.txt

 To the files in the directory tree under list.txt redirected to a file , and then enter it into this folder, find the file and open, you can see the corresponding file tree. Operating examples are as follows:
Here Insert Picture Description
 open file list.txt generated, in part, taken as shown below. As can be seen from the figure has various files in the folder display in the form of file tree.
Here Insert Picture Description

2. Linux file tree view under

 In Linux you want to see the file tree, you must first install tree command, install command as follows:

sudo apt-get install tree

 Use the following command to view the file tree

tree  		// 显示目录树 
tree -a		// 显示所有文件目录
tree -d		// 只显示目录 
tree -L 	// 选择显示的目录深度 
tree -1		// 只显示一层深度,即不递归子目录
Published 57 original articles · won praise 64 · views 30000 +

Guess you like

Origin blog.csdn.net/qq_36310253/article/details/103972242