Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On Ubuntu, is it possible to generate a list of all files in the /home folder that were modified by a specific user? I want to find a list of all of the files that I have created or modified since I installed Ubuntu 12.04.

I mainly want to do this so that I can find all the files that I have created or modified, and then move them to my other Ubuntu installation.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

use find

find /home -user $USER -mtime -90

The -mtime is the number of days, so -90 is the last 90 days. Adjust the number of says as needed.

See also http://content.hccfl.edu/pollock/unix/findcmd.htm

It may just be easier to copy all of home, cp -Ra home or use rsync

https://help.ubuntu.com/community/rsync

share|improve this answer
    
Is it possible to exclude specific folders from this query (so that things like browser cache data can be excluded)? –  Anderson Green Mar 9 '13 at 20:10
    
Yes, use -prune , see stackoverflow.com/questions/4210042/… –  bodhi.zazen Mar 10 '13 at 2:03
add comment

Your Answer

 
discard

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.