From Secure Computing Wiki
Revision as of 22:52, 23 November 2010 by Exyhypele (Talk | contribs)

Jump to: navigation, search

Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly


That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too. For "the newest file in a directory" I'd use <code>ls -tr /some/directory | tail -1</code>

I'll call you, and raise 1

How about: ls -ltr | tail -1 | awk '{print $6" "$7" "$8}'