Interesting Snippet to alter LS output
02 Dec
Posted by admin
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:
- [rbrash@vie ~]$ ls -Gotrh --time-style=+ /etc | cut -b 15-40
- root 313 urlview.conf
- root 3.5K lftp.conf
- root 99 passwdqc.conf
- root 3.3K sudoers
- root 801 mke2fs.conf
Comments
Post new comment