How do I delete files older than 15 days Linux?

Minh Tung

New member
How do I delete files older than 15 days Linux?
Answer
Explanation
  1. The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. …
  2. The second argument, -mtime, is used to specify the number of days old that the file is. …
  3. The third argument, -exec, allows you to pass in a command such as rm.
 

Tìm kiếm

Back
Top