List of last few edited files September 21, 2005Posted by Carthik in commands, ubuntu.
Ever edited quite a few files, and started wondering what files you edited recently? Happened to me quite a few times. I search on google to find the file to edit to accomplish some purpose, edit it, save it, and get on with my work. Later, I find I want to edit it again, and can’t remember the files I edited last. To not repeat this in the future, let me make a note for myself:
$find -mtime 0
will list the last ‘n’ files edited.
$find -mtime 0 | more
will page the results.