Multiple choice technology operating systems

Which one of the following commands verbosely extracts files from a tar archive on a magnetic tape device?

  1. tar xvf /dev/st0

  2. tar rvf /dev/st0

  3. tar cvf /dev/ttyS0

  4. tar xvf /dev/ttyS0

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

The tar command 'xvf' extracts (x), verbosely (v), and specifies the file (f). For magnetic tape devices like /dev/st0 (SCSI tape), the correct syntax is tar xvf /dev/st0. The 'r' flag appends, 'c' creates, and /dev/ttyS0 is a serial port device, not a tape device. Options A and D both use xvf but have different devices - /dev/st0 is the correct tape device.