Created
January 19, 2021 12:13
-
-
Save lfir/13f98ea861f2e13cf24ebd3bc1c86c12 to your computer and use it in GitHub Desktop.
Find files in the home directory not accessed in a certain time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace X with the number of days. | |
# Found files can be deleted by appending option -delete. | |
# Access time must be supported by the file system and | |
# enabled (noatime option not present in /etc/fstab). | |
find "$HOME" -atime +X -type f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment