You need to create a backup of /etc to a removable hard disk drive mounted at /mnt/USB. Which of the following tar commands should you use?
  1. tar -xfv ~/backup.tar /etc
  2. tar -xzf /mnt/USB/backup.tar /etc
  3. tar -cfv /mnt/USB/backup.tar /etc
  4. tar -cfv /mnt/USB/backup.tar ~/etc
Explanation
Answer - C - You should use the tar -cfv /mnt/USB/backup.tar /etc command to create a backup of /etc to a removable hard disk drive mounted at /mnt/USB.

Key Takeaway: The tar command can be used to create tape archives and add or extract files. The tar backup program stores and extract files from an archive file known as a tarfile. A tarfile may point to a tape drive.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz