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