Quick Answer: How to List Directories in Linux?
Contents the 10 Most Important Linux Commands Ls. the Ls Command – the List Command – Functions in the Linux Terminal to Show All of the Major Directories...
The 10 Most Important Linux Commands
- ls. The ls command – the list command – functions in the Linux terminal to show all of the major directories filed under a given file system.
- cd. The cd command – change directory – will allow the user to change between file directories.
- mv.
- man.
- mkdir.
- rmdir.
- touch.
- rm.
How do I list directories in UNIX?
How can I list directories only in Linux? Linux or UNIX-like system use the ls command to list files and directories. However, ls does not have an option to list only directories. [donotprint][/donotprint]You can use combination of ls command and grep command to list directory names only.
Must Read
What is the directory command in Linux?
cd (command) The cd command, also known as chdir (change directory), is a command-line OS shell command used to change the current working directory in operating systems such as Unix, DOS, OS/2, TRIPOS, AmigaOS (where if a bare path is given, cd is implied), Microsoft Windows, ReactOS, and Linux.