Multiple choice technology programming languages

How do I tar/untar a file?

  1. tar -cvf file/tar -xvf file

  2. tar -xvf file /tar -cvf file

  3. tar -cvf file.tar <file>/tar -xvf file.tar <file>/

  4. tar -xvf file.tar <file>/tar -cvf file.tar <file>/

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To create a tar archive, the syntax is tar -cvf archive.tar. To extract (untar) it, the syntax is tar -xvf archive.tar. Option 510833 correctly represents this pair of commands.