How do I list all directories in Linux?

Alvin Le

Member
How do I list all directories in Linux?
Answer
The ls command is used to list files or directories in Linux and other Unix-based operating systems. Just like you navigate in your File explorer or Finder with a GUI, the ls command allows you to list all files or directories in the current directory by default, and further interact with them via the command line.
 

Tìm kiếm

Back
Top