How do I list all directories in Bash?

How do I list all directories in Bash?
Answer
To see a list of all subdirectories and files within your current working directory,
use the command ls
. In the example above, ls printed the contents of the home directory which contains the subdirectories called documents and downloads and the files called addresses.txt and grades.txt .
 

Tìm kiếm

Back
Top