CompTIACompTIA
XK0-005 · Question #1536
XK0-005 Question #1536: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1536. The question stem and answer options stay visible for context.
System Management
Question
A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries. Which of the following commands would be BEST to use to accomplish this task?
Options
- Achattr +a /opt/app/logs
- Bchattr +d /opt/app/logs
- Cchattr +i /opt/app/logs
- Dchattr +c /opt/app/logs
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#chattr command#File attributes#Log file protection#Linux security