LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-26-2003, 04:47 AM   #1
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Rep: Reputation: 15
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
 
Old 08-26-2003, 04:52 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
tar -xvzf thefile.tar.gz
tar -xvjf thefile.tar.bzip2
tar -xvf thefile.tar
unzip thefile.zip

What others are bothering you?
 
Old 08-26-2003, 04:55 AM   #3
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 08-26-2003, 05:00 AM   #4
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
its unzips the files with names likes this \\folder\\filename.txt
instead of making thoose files , it was a tar.gz
 
Old 08-26-2003, 05:01 AM   #5
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 08-26-2003, 05:09 AM   #6
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
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 ?
 
Old 08-26-2003, 05:10 AM   #7
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Yes it would just add it.
 
Old 08-26-2003, 05:12 AM   #8
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
could i use tar then , cp -u /folder/ /dest/

?
 
Old 08-26-2003, 05:14 AM   #9
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
so if it would just add it how do i specifie location ?

and are u sure it wont overwrite the whole folders ?
 
Old 08-26-2003, 05:14 AM   #10
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
i got it tar xvzf tar location
 
Old 08-26-2003, 05:19 AM   #11
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
also whats the command to delete a file / folder ?
 
Old 08-26-2003, 05:21 AM   #12
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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
 
Old 08-26-2003, 05:35 AM   #13
linuxsoundprob
Member
 
Registered: Apr 2003
Posts: 78

Original Poster
Rep: Reputation: 15
cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration