Suggested Answer:See explanation below.
cd /usr/local tar ג€"jcvf /root/backup.tar.bz2 mkdir /test tar ג€"jxvf /root/backup.tar.bz2 ג€"C /test// Decompression to check the content is the same as the /usr/loca after If the questions require to use gzip to compress. change ג€"j to ג€"z.
I don't think this is right answer as the question explicitly asks "tar must use bzip2 to compress". Apart from that the answer provided is perfectly valid.
Answer for RHEL8
# cd /usr/local
# tar -jcvf /root/backup.tar.bz2 /usr/local
# mkdir /test
# tar -jxcf /root/backup.tar.bz2 -C /usr/local
If you do it the way the original answer says it will return the "cowardly refusing" error
Last command should be: tar -jxcf /root/backup.tar.bz2 -C /test
upvoted 2 times
...
...
This section is not available anymore. Please use the main Exam Page.EX200 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
adolfoale
Highly Voted 3 years, 5 months agoVforVodoo
10 months, 1 week agogunwantk
2 years, 8 months agoHmenu0s
1 year, 11 months agolordstans
3 years agohitode
Most Recent 9 months, 3 weeks agoGustavo_13
2 years, 3 months agoHammer84
2 years, 7 months agobrahmimedamine
2 years, 7 months agoAres23
3 years, 1 month agoms200
3 years, 5 months agoRizos
3 years, 7 months agoRizos
3 years, 7 months ago