Untarring a file problem

Thomas Mondoshawan Tate plug-discuss@lists.PLUG.phoenix.az.us
Thu, 3 Jan 2002 08:15:32 -0700


On Thu, Jan 03, 2002 at 05:40:31AM -0700, Clayton Stapleton wrote:
> Hi Folks;
> Tried to untar a .tgz file with the following results:
> 
> clay@linux:~> file ac3d3linuxtrial.tgz
> ac3d3linuxtrial.tgz: gzip compressed data, deflated, last modified: Wed 
> Oct 11 08:32:32 2000, os: Unix
> clay@linux:~> tar -xvfz ac3d3linuxtrial.tgz
> tar: z: Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
> 
> Using ls on the file resulted in:
> 
> -rw-r--r--    1 clay     users     1512801 Jan  1 09:36 ac3d3linuxtrial.tgz
> 
> Any help would be appriciated.
> 
> TIA
> Clay Stapleton

Remember that tar will examine it's options from left to right, and the f
argument expects a filename immediately after it. So, with a parameter
string of -xvfz, f sees the filename as z. To fix your problem, reorder the
letters to put the f last. Ex:

foo@bar:~$ tar -zxvf ac3d3linuxtrial.tgz

-- 
Thomas "Mondoshawan" Tate
mondoshawan@tank.dyndns.org
http://tank.dyndns.org