unix command to print all directories
Answers
Answered by
0
Explanation:
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. You can use combination of ls command and grep command to list directory names only. You can use the find command too. In this quick tutorial you will learn how to list only directories in Linux or UNIX.
Display or list all directories in Unix
Type the following command:
$ ls -l | grep `^d'
$ ls -l | egrep `^d'
Or better try the following ls command only to list directories for the current directory:
$ ls -d */
Sample outputs:
Answered by
0
Answer:
do you have a pic of the TV............ ..
Similar questions