Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Windows command: tree command with all options

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.
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jono
Jono
1 year ago

Thanks – great clear resource

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

1
0
Would love your thoughts, please comment.x
()
x