If you want to display only a list of directories, enter the following command on the console. ls -l | grep '^d' If you want to show just a list of files, type the following command on the console. ls -l | grep -v '^d'
Posted on February 10, 2014 by Amit Pandya in Linux