Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find command

Status
Not open for further replies.

snowsmart

IS-IT--Management
May 24, 2005
37
CA
is there a way to find the last modified/created file in a folder ?

thanks

 
ls -ltr will list all files in a directory, with the latest at the bottom. ls -ltr | tail -1 will ist the last one only.

I want to be good, is that not enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top