Decompress a tar file into a folder
#1
Decompress a tar file into a folder
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
indrema
O2

Trade Count: (0)
Posts: 49
Threads: 13
Joined: Sep 2018
Find Reply
09-22-2018, 08:24 PM
#2
RE: Decompress a tar file into a folder
(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
TruHobbyist
Developer

Trade Count: (0)
Posts: 195
Threads: 21
Joined: May 2018
Find Reply
09-22-2018, 09:14 PM
#3
RE: Decompress a tar file into a folder
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

Octane 2x600mhz R14000 Octane2 dual head V12 / V10, 7 gig Ram
Octane 2x250mhz R10000 2gig ram, MXE, Digital Video, MSCSI, Jaleo
1600SW O2 400mhz R12000 O2, 1gig Ram AV1  - 250gig Media' raid
Indy 180mhz R5000 Indy XZ 256mb ram
Indigo2 200mhz R4400 Extreme…….Under Construction
Dell T7600 dual 3.5 Xeon, 512 gb ram, Quadro K6000 + Tesla k20 - DaVinci Resolve Studio Editing
Dell T5500 dual 3.2 Xeon, 72gb ram, Quadro 6000 + Tesla C2075 - DaVinci Resolve Studio Cutting
Intel i7-990x 3.46GHz Extreme 6 core / Quadro 5000 & 2 x Tesla C2075 / 24gig Ram inside an SGI 320vw case
bjames
Tezro

Trade Count: (0)
Posts: 384
Threads: 109
Joined: Aug 2018
Find Reply
09-23-2018, 02:07 AM
#4
RE: Decompress a tar file into a folder
btw the "-" isn't needed, if your a lazy typer like me.

tar xf file.tar
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
09-23-2018, 04:22 AM
#5
RE: Decompress a tar file into a folder
Hi guys, TNX for all the reply I ‘ve do it.
indrema
O2

Trade Count: (0)
Posts: 49
Threads: 13
Joined: Sep 2018
Find Reply
09-23-2018, 10:04 AM
#6
RE: Decompress a tar file into a folder
(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
sgiseller
O2

Trade Count: (1)
Posts: 32
Threads: 13
Joined: Jan 2018
Find Reply
09-24-2018, 01:42 AM
#7
RE: Decompress a tar file into a folder
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?

Jan
 O2plus 1600SW-on   O2 1600SW-on
O2+: R12k@400 Mhz - 1024 MB RAM - AV1 board - 1600SW adapter
O2 :  R10k@195 MHz - 320 MB RAM - AV1 board - 1600SW adapter
Jan
O2

Trade Count: (0)
Posts: 22
Threads: 3
Joined: May 2022
Location: Germany
Find Reply
07-24-2022, 06:37 PM
#8
RE: Decompress a tar file into a folder
You need to add the -C flag.

tar xf ports.tar -C /usr

Will put the contents of ports.tar in /usr

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
07-24-2022, 09:41 PM
#9
RE: Decompress a tar file into a folder
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'

Personaliris O2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT Indigo2 Indy   (past: 4D70GT)
robespierre
refector peritus

Trade Count: (0)
Posts: 640
Threads: 3
Joined: Nov 2020
Location: Massholium
Find Reply
07-25-2022, 01:28 AM
#10
RE: Decompress a tar file into a folder
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=fir...to+use+tar
(This post was last modified: 07-29-2022, 03:05 PM by stormy.)
stormy
Atari expert!

Trade Count: (1)
Posts: 180
Threads: 34
Joined: May 2019
Location: UK
Find Reply
07-29-2022, 03:04 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)