-   Linux - Software (
-   -   Compresion (

linuxsoundprob 08-26-2003 04:47 AM

Can some body please tell me all the unziping commands for all the different types of compressed file , i.e tar zip
I need to extract into folders

leonscape 08-26-2003 04:52 AM

tar -xvzf thefile.tar.gz
tar -xvjf thefile.tar.bzip2
tar -xvf thefile.tar

What others are bothering you?

linuxsoundprob 08-26-2003 04:55 AM

i have ssh access to the box, but i dont want to screw it up installing unzip , isnt there already a program on there?

And also if i have a shell script
with a couple of screen command and start command in it
If i wanted to add to it would i just edit it and thne do ./keepprogrun ?? or would i have to stop it ? first then run ita gain
Also i would like to know how to stop programs

linuxsoundprob 08-26-2003 05:00 AM

its unzips the files with names likes this \\folder\\filename.txt
instead of making thoose files , it was a tar.gz

leonscape 08-26-2003 05:01 AM

I don't think installing unzip would bother the box, as most Linux updates and installs do not require restarts of the machine.

Why don't you unzip the files on the current machine then pass it too the machine you connected too?

If all that script did was kick of a couple of commands, it should of exited. and so yes you should be quite able to just re-run it.

To stop a something running already, try kill. do man kill to get the list of options available, also look up the program top.

linuxsoundprob 08-26-2003 05:09 AM

Also how do i extract a tarball to a location , but then instead of overwrting whole folders just extract the files inot the folder for example
the tarball contained
and i extracted it to
files\ which contained the folder \admin\admin\file\123\ with files already in it, so it would just add lunux.txt to that folder ?

leonscape 08-26-2003 05:10 AM

Yes it would just add it.

linuxsoundprob 08-26-2003 05:12 AM

could i use tar then , cp -u /folder/ /dest/


linuxsoundprob 08-26-2003 05:14 AM

so if it would just add it how do i specifie location ?

and are u sure it wont overwrite the whole folders ?

linuxsoundprob 08-26-2003 05:14 AM

i got it tar xvzf tar location

linuxsoundprob 08-26-2003 05:19 AM

also whats the command to delete a file / folder ?

leonscape 08-26-2003 05:21 AM

rm to delete a file
rmdir to delete a directory.

To delete all files, and sub directories in a directory, and the directory itself.

rm -r thedirectory

linuxsoundprob 08-26-2003 05:35 AM


All times are GMT -5. The time now is 06:29 AM.