View previous topic :: View next topic |
Author |
Message |
R-Kite n00b
Joined: 29 Jan 2004 Posts: 28
|
Posted: Sat Feb 07, 2004 12:20 am Post subject: Can't untar something... |
|
|
I cannot untar something... I try tar -x something.tar.gz and the shell jumps to a new line and i wait and wait and wait and nothing happens, even as root. I tried gzip -d, then it is something.tar then tried again, nothing happens |
|
Back to top |
|
|
mike4148 l33t
Joined: 09 Sep 2003 Posts: 641
|
Posted: Sat Feb 07, 2004 12:24 am Post subject: |
|
|
In brief:
Code: | tar -xf something.tar |
Basically, what you saw was tar waiting for you to, essentially, "type in" the file contents (it reads the standard input by default). Use the "-f" option to specify the file you want to untar. Read about this and many other useful options in man tar.
Probably the most common tar commandline in the world is
Code: | tar -xzvf something.tar.gz |
The "z" option tells tar to use gzip to decompress the file first, and the "v" option tells tar to be verbose -- that is, it displays the name of each file as it is extracted. |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sat Feb 07, 2004 12:25 am Post subject: |
|
|
For archiv.tar.gz, type:
Code: | tar -xzf archiv.tar.gz |
for archiv.tar.bz2, type:
Code: | tar -xjf archiv.tar.bz2 |
The -f switch is for 'input file', otherwise tar expects input via a pipe like this:
Code: | cat archiv.tar.gz | tar -xf |
G'Night!
<edit>Hey, mike4148, that's MY noob, I saw him first! </edit> |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|