0

Is there a find command flag where I can set a max date age for files. Example would be only files within the last 2 days

Also, a command I was given was -type f what does -type f mean?

tjcinnamon
  • 205
  • 1
  • 8

1 Answers1

1

Read the manual ! See -mtime -2 to get the modifications in the last two days and only concerning the files with -type f

http://man7.org/linux/man-pages/man1/find.1.html

Dom
  • 6,743
  • 1
  • 20
  • 24
  • I couldn't find the manual so I was using -help – tjcinnamon Apr 06 '17 at 14:19
  • 2
    Nearly every linux system has the online manual installed which you can access with the `man ` command. For the `find` command the manual becomes `man find` and the `man` command itself also comes with it's own manual: `man man` -|- Women are unfortunately not documented though ;-) `man woman` *"No manual entry for woman"* – HBruijn Apr 06 '17 at 14:37