Skip to content

Instantly share code, notes, and snippets.

@lfir
Created January 19, 2021 12:13
Show Gist options
  • Save lfir/13f98ea861f2e13cf24ebd3bc1c86c12 to your computer and use it in GitHub Desktop.
Save lfir/13f98ea861f2e13cf24ebd3bc1c86c12 to your computer and use it in GitHub Desktop.
Find files in the home directory not accessed in a certain time
# 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