SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Thursday, June 18, 2009

linux last modified file | last created file

So how do you find Linux / UNIX system last created file or edited file?.The ls utility will list all the files,by doing some combinations from the ls command we can find the results

1.ls -t | awk '{print $1}' | head -1
2.ls -ct1 | head -1
3.ls -rt| tail -1

No comments :

Post a Comment