Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 2 (Q.No. 32)
32.
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?
find -mtime +365 | rm
grep (/usr/*) - mtime + 365 | -ok rm
find -name - mtime + 365 / - ok rm
find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
6 comments Page 1 of 1.

Amit said:   1 decade ago
Please explain the option D. What is OK and what is /user/*?

WIDED said:   1 decade ago
OK refers to the confirmation prompt.

WIDED said:   1 decade ago
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.

Meena said:   9 years ago
Please explain the option D. How it will be the answer?

Spoiltbratkabirr said:   8 years ago
Please Explain Option D.

Axita said:   3 years ago
I am not understanding this.

Post your comments here:

Your comments will be displayed after verification.