Listing LINUX directory tree

Not sure why I didn’t capture this before since I did it for the music collection. To update I had to google it all over again. So… future reference!

The command at the CLI (login using PuTTY or SSH):

tree > music.txt

The tree will be directed to a text file called music.txt

Also, as there are a few directory names with spaces and Linux doesn’t like spaces in the direcotry names, to change directory to them, use quotes:

cd “Chamorro Christmas”

Let’s not forget this shit in the future……


KEYWORDS FOR SEARCH: DIRECTORY TREE LINUX LS LIST SUBDIRECTORY SUBDIRECTORIES FOLDER SUBFOLDER

CD to directories with spaces in the DIR name

I wonder why I never came across this before, but I learned today!!! This was when I CLI’d into the server and was wanting to CD and tree contents of directories, and from the CLI it wouldn’t recognize the directory while it was listing in the ls-la output and clearly accessible via FTP.

To be able to get into the directories and do tree listing of them, I had to enclose the directory names in quotes.…

Continue Reading...