1005Software EngineeringMedium
Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?
Agrep (/usr/*) – mtime + 365 | -ok rm
Bfind -name – mtime + 365 / – ok rm
Cfind /user/* \(-mtime + 365 – a – atime +365 \) – OK rm {} \;
Dfind -mtime +365 | rm
Correct answer
C. find /user/* \(-mtime + 365 – a – atime +365 \) – OK rm {} \;
Explanation
The correct answer is find /user/* \(-mtime + 365 – a – atime +365 \) – OK rm {} \;.