elijah
asked Dec 18 2019
Answer
To list only Directory from the current location in Centos, use the below command
#ls -ld */
[root@localhost ~]# ls -ld */
drwxr-xr-x 4 root root 4096 Dec 9 16:58 department/
drwxr-xr-x. 2 root root 4096 Dec 10 15:05 Desktop/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Documents/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Downloads/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Music/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Pictures/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Public/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Templates/
drwxr-xr-x. 2 root root 4096 Nov 10 10:03 Videos/
linuxhelp
asked Dec 18 2019
How to List only Directories from the Current Location in Linux
I want to list only Directory from the current location in Centos, How can be done that?