Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

RHCSA Tar

Back


Question

Create a tar archive of "/etc/" Directory with .bzip2 extension.
Tar archive named "myetcbackup.tar" should be place in "/root/" Directory.

Solution

tar -cvjf /root/myetcbackup.tar /etc/
# note, cannot use option: -cvfj, doesnot work.

# confirm
ll -h /root/myetcbackup.tar
# list the contents of the archive
tar -tvjf /root/myetcbackup.tar.bz2