Problem Statement
Which command creates an archive file from multiple files or directories?
Explanation
tar is used to group multiple files or directories into one archive file.
It’s often used with gzip for compressed backups, using the -czf option.
Code Solution
SolutionRead Only
tar -czf backup.tar.gz /home/user/
Practice Sets
This question appears in the following practice sets: