commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Coming back to a project directory after sometime elsewhere?
Need to know what the most recently modified files are?
This little function "t" is one of my most frequent commands.
I have a tcsh alias for it also:
alias t 'ls -ltch \!* | head -20'
There are 5 alternatives - vote for the best!
Returns the most recently modified file in the current (or specified) directory. You can also get the oldest file, via:
ls -t1 $* | tail-1 ;
If you can do better, submit your command here.
You must be signed in to comment.