Desk2Mob

Desk2Mob

Desk2Mob

Display only Directory or file using ls command

if you want to display only list of directory, type the following command on console

ls -l | grep `^d'

if you want to display only list of file, type the following command on console

ls -l | grep -v '^d'

Posted on February 10, 2014 by Amit Pandya in Linux


All Posts