"what does the command do? find . -type f -mtime 2"

  1. list all ordinary files in current dir that have been modified within last 24 hours

  2. list all ordinary files in current dir that have been modified within last 4 days

  3. list all ordinary files in current dir that have been modified within last 48 hrs

  4. list all ordinary files in current dir that have been modified within last 2 hrs


Correct Option: C

AI Explanation

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.

Find more quizzes: