Saturday, May 19, 2012

Display all the directories under a directory in linux

If we are using ls -lrt , which will display all the files and directories with user permission, group permission size etc. But if we have a directory with a lot of files and sub directories, then we can use the below command to display only directories under a directory

ls -lrt|grep ^d

No comments:

Post a Comment