All posts by caulfiek

LS Listing Commands

List only directories

                ls -l | egrep “^d”

 

List only sym links

                ls -l | egrep “^l”

 

List only files

                ls -l | egrep –v  “^d”

 

List files in subdirectories

                ls –ltrR

 

List all files, incl. sub dirs, with full path.

                find /opt/kieran/docs/ ! -type d -print > file_list.txt

 

List files that do NOT have an extension.

                ls -l RUN* | grep -v ‘\.’

                                This looks for all files beginning “RUN*”