Tuesday, May 14, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 16683  / 3 Years ago, tue, november 2, 2021, 5:25:23

Back in my (sucky) Windows days, I used the tree command to view the file hierarchy in a pretty display. I am aware of the find command, but to actually process any data in my clogged 241,416 folders/files from just checking each line is as possible as time travelling...


./build/CMakeFiles/cmake.check_cache
./build/CMakeFiles/Makefile.cmake
./build/CMakeFiles/CMakeTmp
./build/CMakeFiles/TargetDirectories.txt
./build/CMakeFiles/compilerid.dir
./build/CMakeFiles/compilerid.dir/depend.make
./build/CMakeFiles/compilerid.dir/flags.make
./build/CMakeFiles/compilerid.dir/DependInfo.cmake
./build/CMakeFiles/compilerid.dir/link.txt
./build/CMakeFiles/compilerid.dir/build.make
./build/CMakeFiles/compilerid.dir/cmake_clean.cmake
./build/CMakeFiles/compilerid.dir/main.o
./build/CMakeFiles/compilerid.dir/CXX.includecache
./build/CMakeFiles/compilerid.dir/progress.make
./build/CMakeFiles/compilerid.dir/depend.internal
./build/cmake_install.cmake
./build/CMakeCache.txt
./build/Makefile
./build/compilerid
./CompilerID.kdev4
./.kdev4
./.kdev4/CompilerID.kdev4
./main.cpp

Output of find on one folder holding the files of a one-file, incomplete C++ project


On Windows, the tree command gave a diagram-like output that is human readable


Screenshot of tree command in command prompt
Screenshot of the pretty tree command


So, my question is, is there anything graphically close to the Windows/DOS tree command?


More From » command-line

 Answers
5

Same command exist. To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



sudo apt-get install tree


enter image description here


[#24637] Tuesday, November 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ersoggles

Total Points: 69
Total Questions: 111
Total Answers: 111

Location: Vanuatu
Member since Sun, Oct 2, 2022
2 Years ago
ersoggles questions
;