Create a compressed archive of /etc and verify its file type.
See the solution below in Explanation.
Solution:
tar -zvcf /root/etc_backup.tar.gz /etc
file /root/etc_backup.tar.gz
Detailed Explanation:
tar creates the archive.
-z uses gzip compression.
-v is verbose.
-c creates the archive.
-f names the output file.
file confirms the resulting archive type.
Submit