Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Find all files modified within 24 h, unwanted dirs excluded
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-01-28
01:33 PM
2013-01-28
01:33 PM
Find all files modified within 24 h, unwanted dirs excluded
It's useful when troubleshooting to find all system files modified within last 24 hours.
In a terminal window with SSH access to the server:
Excluded directories: /c, /USB, /home, /proc and /sys. Hidden files also excluded. And persmissions are printed.
In a terminal window with SSH access to the server:
# find / \( -path /c -o -path /USB -o -path /home -o -path /proc -o -path /sys \) -prune -o -type f ! -name '.*' -mtime -1 -exec ls -ld {} \;
Excluded directories: /c, /USB, /home, /proc and /sys. Hidden files also excluded. And persmissions are printed.
Message 1 of 1
Labels: