IRIX Network Forums
Decompress a tar file into a folder - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: Beginners' Questions/Tips (//forums.irixnet.org/forum-6.html)
+--- Thread: Decompress a tar file into a folder (/thread-458.html)

Pages: 1 2


Decompress a tar file into a folder - indrema - 09-22-2018

Sorry I’m really noob on Irix, how I can decompress a tar in a folder?
If I double click the system show me the file list into it but not decompress they.
TNX


RE: Decompress a tar file into a folder - TruHobbyist - 09-22-2018

(09-22-2018, 08:24 PM)indrema Wrote:  Sorry I’m really noob on Irix, how I can decompress a tar in a folder?
If I double click the system show me the file list into it but not decompress they.
TNX

Hi

tar is not a compression algorithm, it is more like a bundle of files. To untar a tarfile/tarball:

# tar -xvf file.tar

Regards,
Tru


RE: Decompress a tar file into a folder - bjames - 09-23-2018

I’m a Unix newbie myself. Here is what I do.. assume the filed is called file.tar

If the file is copied to your user folder, in my case the user folder is called bjames

Open Unix she’ll and navigate to your user folder where you copied the .tar file to.

Type
cd /user/people/bjames

To untar the file named “file.tar”

Type
Tar -xf file.tar

A folder will be created automatically for the contents of the tar file.

If you have a file called “file.tar.gz”. Which is a zipped tar file

Go to the folder that contains the file as above

Type

gunzip file.tar.gz

It will unzip the file into a tar file

Then untar the file by typing

tar -xf file.tar

Then your done


RE: Decompress a tar file into a folder - gijoe77 - 09-23-2018

btw the "-" isn't needed, if your a lazy typer like me.

tar xf file.tar


RE: Decompress a tar file into a folder - indrema - 09-23-2018

Hi guys, TNX for all the reply I ‘ve do it.


RE: Decompress a tar file into a folder - sgiseller - 09-24-2018

(09-23-2018, 04:22 AM)gijoe77 Wrote:  btw the "-" isn't needed, if your a lazy typer like me.  

tar xf file.tar

If I recall you and also explicitly defing root output directory
tar -xvf file.tar /usr2/backup/movies

anyone? has my memory faded from lack of use
man tar will also give some ideas Cool


RE: Decompress a tar file into a folder - Jan - 07-24-2022

I tried that yesterday on IRIX 6.5.30 and
tar -xvf file.tar /somewhere/folder
is exctracting exactly nothing.
If the path is removed from the command, all the files and folders are extracted into the root dir.

What am I doing wrong?


RE: Decompress a tar file into a folder - Raion - 07-24-2022

You need to add the -C flag.

tar xf ports.tar -C /usr

Will put the contents of ports.tar in /usr


RE: Decompress a tar file into a folder - robespierre - 07-25-2022

That is correct. Without an option that consumes an argument, the default meaning of each argument is a filename to add or extract from an archive.
See 'man tar'


RE: Decompress a tar file into a folder - stormy - 07-29-2022

FYI tar is not Irix specific, it's in all Linux and BSDs. So you don't really need to be asking about tar's on a forum when you can just Google how to use tar. Just trying to save you time, and others.

ie; https://www.google.com/search?client=firefox-b-d&q=how+to+use+tar