maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   tar? (https://talk.maemo.org/showthread.php?t=13467)

Gadget25 2007-12-20 03:05

tar?
 
Is there any applications to unzip tar files on the nokia n800?

technut 2007-12-20 03:14

Re: tar?
 
1) Open Xterminal, type "tar".
2) See there are options.
3) Search for explanation of tar options if you don't know them.

Gadget25 2007-12-20 03:19

Re: tar?
 
ok in the terminal i put tar then the file name and i get invalid option --1

the tar file is in the main directory which is nokia n800

dblank 2007-12-20 06:22

Re: tar?
 
Quote:

Originally Posted by Gadget25 (Post 111641)
ok in the terminal i put tar then the file name and i get invalid option --1

the tar file is in the main directory which is nokia n800

tar xvf file.tar

x means extract, v means verbose, f tells it which file.

gemniii42 2007-12-20 12:04

Re: tar?
 
Quote:

Originally Posted by Gadget25 (Post 111631)
Is there any applications to unzip tar files on the nokia n800?

technut is wrong :) - there "is" not any applications to unzip tar files.
Tar files are not zipped.
tar = tape archive, which came along decades before "zip".
There are many options to untar tar files.
There are many options to learn extremely basic unix commands.
Of course there also seems to be many options to create totally useless threads.

Milhouse 2007-12-20 14:59

Re: tar?
 
I think people are mixing terminology here - depending on how forgiving people want to be one could consider "unzipping" to simply mean "extracting" which is precisely what technut explained. If the OP meant "uncompressing" then tar will do this too - just add the z parameter, ie.

Code:

tar xvzf mycompressed.tar.gz
to extract the files from a compressed tar file.

Note that tar on Internet Tablets is quite picky about where the z parameter appears - always put it before the f parameter otherwise tar will complain.

And to view the content of a compressed tar file, use

Code:

tar tvzf mycompressed.tar.gz
As a rule the filenames of compressed tar files end in .gz but this may not always be the case.

Gadget25 2007-12-20 15:34

Re: tar?
 
It comes up with cant open "file" no such file or directory..is it suppose to be in a certain spot...

Milhouse 2007-12-20 16:12

Re: tar?
 
You need to give tar the correct path to your file - I've no idea where you file is right now. Also be careful where you extract to, as tar might overwrite existing files which may or may not be what you intend.

Assuming you're in the same directory as your archive file (eg. myfile.tar), if it's not compressed you should be able to list the contents with

Code:

tar tvf myfile.tar
Replace "myfile.tar" with the path to your file.

Does this work?


All times are GMT. The time now is 06:11.

vBulletin® Version 3.8.8