Unix

Q1:

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?

A find -mtime +365 | rm

B grep (/usr/*) - mtime + 365 | -ok rm

C find -name - mtime + 365 / - ok rm

D find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;

E None of the above

ANS:D - find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;

And /usr/* I think it refers to the user file system.

But I don't understand \(-mtime + 365 - a - atime +365 ).

And logically the pipe must be used in this case.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.