Wednesday, May 15, 2024
262
rated 0 times [  262] [ 0]  / answers: 1 / hits: 276864  / 2 Years ago, mon, february 7, 2022, 9:54:26

What is the command that can be used to draw the directory tree inside the terminal emulator?



enter image description here


More From » command-line

 Answers
0

You can use tree to print the directory tree in terminal. Install tree from terminal,



sudo apt-get install tree


To see the directory tree, use



tree /path/to/folder


Or navigate to a directory and just use



tree


It has some advanced options too. You can see owner's username, groupname, date of last modification of a file/folder and so on using tree. It supports directory colors of ls so you can see colourized outputs.



See man tree for more.


[#26630] Tuesday, February 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ndaavi

Total Points: 169
Total Questions: 116
Total Answers: 113

Location: Falkland Islands
Member since Wed, Dec 23, 2020
3 Years ago
ndaavi questions
Tue, Apr 18, 23, 02:18, 1 Year ago
Wed, Jul 7, 21, 21:29, 3 Years ago
Wed, Jun 8, 22, 20:15, 2 Years ago
Tue, Aug 23, 22, 11:51, 2 Years ago
;