RedHat EX200 Question Answer
Create a tar archive of /var/log named /root/logs.tar, then extract it into /backup.
See the solution below in Explanation.
Solution:
mkdir -p /backup
tar -cvf /root/logs.tar /var/log
tar -xvf /root/logs.tar -C /backup
Detailed Explanation:
tar -cvf creates an uncompressed archive.
tar -xvf extracts the archive.
-C /backup tells tar where to extract the files.
This is a common RHCSA-style archive and restore task.
TESTED 16 May 2026
Copyright © 2014-2026 ACE4Sure. All Rights Reserved