print only file name with ls -l

There is an easy trick to display only the filename with ls -l

ls -l | awk '{print $9}'

Leave a Reply

Your email address will not be published. Required fields are marked *