My professor showed me how to list the directories above the current working directory using the cd command. I thought it was
cd ..[tab]
but this lists commands in my current directory.
Ubuntu – How to list directories “above” working directory
command line
Related Question
- Ubuntu – How to find all PDF files in directories and their subdirectories
- Ubuntu – How to save working directory in gnome-terminal
- Ubuntu – Terminal: List all directories for which a user or group has write permission
- Ubuntu – Why there are 2 directories having same content
- Ubuntu – How to get a list of only the files (not the directories) from a package
Best Answer
I am assuming you just want to list directories on the parent of the current directory, you can use
find
:Alternately, you can use
ls
:Or shell:
or elaborately:
Or in
zsh
using glob qualifier/
(redundant though :)):