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. Like if the directory is

chamorro music library

I had to do a tree “chamorro music library”

Google is your best friend! I found all this on askbuntu.com.

Leave a Reply

Your email address will not be published.