This is a small post for Linux beginners . Viewing folders can be achieved by two ways in linux/UNIX
- Through ls command
- Through find command
Ls –l | grep ^d
Through find command
find . -type d
[root@test surendra_a]# ls -l | grep ^d
d——— 2 root root 4096 Sep 8 09:54 HTWFAIP
drwxrwxr-x 2 root root 4096 Nov 27 12:30 LinuxCBT – RHEL5
drwxrwxr-x 2 root root 4096 Oct 12 16:40 Software
Through find command
#find . -type d
The above command will show you all the file types which are directories in present working directory.
No comments:
Post a Comment