The “tree” command is a Windows command-line tool that displays the directory structure of a specified path or drive in a tree format. Here are the options available for the “tree” command:
Usage: tree [drive:][path] [/F] [/A] [/Q] [/R] [/T] [/X] [/K]
Options:
- [drive:][path]: Specifies the drive and directory to display the tree structure of. If no path is specified, the current directory is used.
- /F: Displays the names of the files in each folder.
- /A: Uses ASCII instead of extended characters.
- /Q: Encloses directory names in double quotation marks.
- /R: Displays the tree structure in a reverse order.
- /T: Displays the tree structure with the file sizes.
- /X: Prints the short names of files and directories.
- /K: Displays the sizes of folders in kilobytes.
For example, to display the directory tree of the C:\Windows folder with file names and sizes, you would use the following command:
For example, to display the directory tree of the C:\Windows folder with file names and sizes, you would use the following command:
tree C:\Windows /F /T
This would display a tree structure of the C:\Windows folder with file names and sizes. The "/F" option displays the names of files, and the "/T" option displays file sizes.
Latest posts by Rajesh Kumar (see all)
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024
Thanks – great clear resource