Interesting Snippet to alter LS output

02 Dec in Linux

While searching for output options for ls, I decided to clean up the output - I didn't need the date and wanted to know who, the size and the filename. Enjoy!

ls -Gotrh --time-style=+ /etc | cut -b 15-40

Which outputs the following:

  1. [rbrash@vie ~]$ ls -Gotrh --time-style=+ /etc | cut -b 15-40
  2.  
  3.  root  313  urlview.conf
  4.  root 3.5K  lftp.conf
  5.  root   99  passwdqc.conf
  6.  root 3.3K  sudoers
  7.  root  801  mke2fs.conf

Comments

Post new comment

By submitting this form, you accept the Mollom privacy policy.

Pacific Simplicity 2011 All rights reserved. Contact