Using ls and find command how to display only directories
Using ls and find command how to display only directories Following commands list only directories in the current directory. 1. #ls -l | grep ^d 2. #ls -d */ 3. #find -type d Ex: #find /tmp -type d Want only files to be listed.. use 1. #ls -l | grep -v ^d 2. #find -type f Ex: #find /tmp -type f download file now