Archive files
Archive files and directories into a compressed file using tar, and extract the contents of an existing tar archive.
Task 1:
Create backup file named /root/backup.tar.bz2
The backup file should contain the content of /usr/local
and should be zipped with bzip2
compression format.
Furthermore, ensure SELinux is in enforcing mode, If it is not, change SELinux to enforcing mode.
Solution:
Task 2:
Create backup file named /root/backup.tar.bz2
, which contains the contents of /usr/local
, bar bust use bzip2
compression.
Solution:
Last updated
Was this helpful?