Red Hat Bugzilla – Bug 127133
w5c7q4: tar -f's mandatory argument can be deferred. go figure.
Last modified: 2007-04-18 13:09:20 EDT
Workbook 5: The Linux Filesystem
> Chapter 7. Archiving Files with tar
> 4. You have downloaded a file titled linux-2.5.34.tar.gz.
> Which of the following commands can you run to extract the
> contents of the file?
> Y A. tar xvzf linux-2.5.34.tar.gz
> B. tar -x -f linux-2.5.34.tar.gz
> Y C. tar -x -z -f linux-2.5.34.tar.gz
> D. tar -xZf linux-2.5.34.tar.gz
> N E. tar xfz linux-2.5.34.tar.gz
> Y F. tar -x -f linux-2.5.34.tar.gz -z
> "E" is actually a correct answer.
> (Linux version 2.4.20-8)
i'll be danged... it shouldn't be, because -f takes a required argument
(the name of the archive), but apparently its treated as a special case
by tar. noted. Thanx!