Bug 127133 - w5c7q4: tar -f's mandatory argument can be deferred. go figure.
Summary: w5c7q4: tar -f's mandatory argument can be deferred. go figure.
Alias: None
Product: Red Hat Academy
Classification: Retired
Component: RHA030 Curriculum
Version: 2.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Bowe Strickland
QA Contact: Bowe Strickland
Depends On:
TreeView+ depends on / blocked
Reported: 2004-07-02 13:35 UTC by Bowe Strickland
Modified: 2007-04-18 17:09 UTC (History)
0 users

Clone Of:
Last Closed: 2005-01-07 17:29:50 UTC

Attachments (Terms of Use)

Description Bowe Strickland 2004-07-02 13:35:59 UTC
Workbook 5: The Linux Filesystem
> Chapter 7. Archiving Files with tar
> Questions
> 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!

Note You need to log in before you can comment on or make changes to this bug.