Once you get SSH access, you’ll want to navigate to the directory you’ll be checking using cd
to traverse. You can check your current directory with the pwd
command. Use cd ..
to go up a directory. The commands to check for changed files are below:
find . -mtime -3
The above code will find files that have been modified less than 3 days ago. To be more specific and just check for the file change time, use:
find . -ctime -3
To be even more specific you can set a date range by using:find . -ctime +1 -a -ctime -3
Which will find all files changed, and thus modified, at least one day ago but within three days ago.find -cmin -60
For more precise checking, use this to check files changed in the last 60 minutesfind -mmin -60
For more precise checking, use this to check files modified in the last 60 minutesfind -amin -60
For more precise checking, use this to check files accessed in the last 60 minutes