Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Ubuntu, is it possible to obtain a list of all files on the filesystem that I have edited? I need some way to find all the files that I have modified or written (because these files tend to be the most important to me, and I need a way to identify them so that I won't accidentally delete them.)

share|improve this question

Using find command you can list the files created/edited by a user.

find / -type f -user userid -print

use sudo if you are searching the files under / file system and if its only your home directory($HOME) ignore sudo command.

share|improve this answer
Does this work for edit? I mean, the -user userid is only for files that are owned by you, if you have edited a file that is owned by the system or another user, you won't find it. – Nanne Nov 15 '12 at 8:09
This wont work if the we use sudo <command> to edit the file. This command can only list the files that are owned by a particular user – devav2 Nov 15 '12 at 9:10
also, world or group writeable files: you don't need sudo for that :) – Nanne Nov 15 '12 at 9:31
I agree but if sudo is not used then OP would get "permission denied" for searching / file system. Sudo is just to suppress the warnings. – devav2 Nov 15 '12 at 9:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.