Question
Option 3 : Deletes .log files under /var that were last modified more than 30 days ago / /var के अंतर्गत 30 दिन से पहले संशोधित .log फाइलों को हटाता है
Detailed Solution
सही उत्तर Deletes .log files under /var that were last modified more than 30 days ago / /var के अंतर्गत 30 दिन से पहले संशोधित .log फाइलों को हटाता है है।
Question:
What does the Linux command `find /var -name '*.log' -mtime +30 -delete` do? / Linux कमांड `find /var -name '*.log' -mtime +30 -delete` क्या करता है?
Correct Answer: Deletes .log files under /var that were last modified more than 30 days ago / /var के अंतर्गत 30 दिन से पहले संशोधित .log फाइलों को हटाता है
`-mtime +30` matches files whose data was last modified more than 30*24 hours ago (not minutes), `-name '*.log'` filters log files, and `-delete` removes the matches. / `-mtime +30` उन फाइलों से मेल खाता है जिनका डेटा 30*24 घंटे से पहले संशोधित हुआ था (मिनट नहीं), `-name '*.log'` लॉग फाइलों को छाँटता है, और `-delete` मेल खाने वालों को हटाता है।