"what does the command do? find . -type f -mtime 2"
-
list all ordinary files in current dir that have been modified within last 24 hours
-
list all ordinary files in current dir that have been modified within last 4 days
-
list all ordinary files in current dir that have been modified within last 48 hrs
-
list all ordinary files in current dir that have been modified within last 2 hrs
find's -mtime 2 finds files modified approximately 2*24=48 hours ago. The n in -mtime n means n 24-hour periods. -mtime 0 is less than 24 hours, -mtime 1 is 1-2 days, -mtime 2 is 2-3 days ago.
To answer this question, let's break down the command and its options:
The command "find" is used to search for files and directories within a given directory hierarchy.
The dot (.) represents the current directory.
The option "-type f" is used to specify that the search should only include ordinary files (not directories or other types of files).
The option "-mtime 2" is used to specify that the search should include files that have been modified within the last 48 hours. The number 2 represents the number of days.
Therefore, the correct answer is C) list all ordinary files in the current directory that have been modified within the last 48 hours.