LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compresion (http://www.linuxquestions.org/questions/linux-software-2/compresion-85794/)

linuxsoundprob 08-26-2003 03:47 AM

Compresion
 
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 03:52 AM

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

What others are bothering you?

linuxsoundprob 08-26-2003 03: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 keepprogrun.sh
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 04: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 04: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 04: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
admin\file\123\linux.txt
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 04:10 AM

Yes it would just add it.

linuxsoundprob 08-26-2003 04:12 AM

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

?

linuxsoundprob 08-26-2003 04: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 04:14 AM

i got it tar xvzf tar location

linuxsoundprob 08-26-2003 04:19 AM

also whats the command to delete a file / folder ?
:newbie:

leonscape 08-26-2003 04: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 04:35 AM

cheers


All times are GMT -5. The time now is 08:46 AM.