How do I find unwanted files in Linux?

How do I find unwanted files in Linux?
Answer
What is the Linux command to find and delete unused files?
  1. find /home -atime +365.
  2. In the example above, all files from the /home directory is searched where the last accessed (atime) is older than 365 days.
  3. This will give an accurate overview of which files haven’t been accessed in XX number of days.
 

Tìm kiếm

Back
Top