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
...
...
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 2 years, 12 months agoVforVodoo
5 months agogunwantk
2 years, 3 months agoHmenu0s
1 year, 5 months agolordstans
2 years, 7 months agohitode
Most Recent 4 months, 1 week agoGustavo_13
1 year, 10 months agoHammer84
2 years, 1 month agobrahmimedamine
2 years, 1 month agoAres23
2 years, 8 months agoms200
2 years, 11 months agoRizos
3 years, 1 month agoRizos
3 years, 1 month ago