Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?
A. find /var/log -type d -mtime +180 -print -exec rm {} \;
B. find /var/log -type f -modified +180 -rm
C. find /var/log -type f -mtime +180 -exec rm {} \
D. find /var/log -type c -atime +180 –remove
Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ag
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ag
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!