So this was on the bash twitter feed the other day, and I've found it to be one
of the most useful commands I've ever found:

ls -ltr

sorts the folder by least to most recently modified, so 

ls -ltr | tail 

will show you the 10 most recently edited files

so you can do something like

function l { ls -ltr | tail -$1 }

run with no args to get 10 most recent, or say do `l 15` to get 15 most
recently modified.

I only read this a few days ago and I've already used it probably a dozen
times.
-- 
Jonathan Wilson

Attachment: pgpd4iPAGYA9Q.pgp
Description: PGP signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to