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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-26-2003, 04:47 AM
|
#1
|
Member
Registered: Apr 2003
Posts: 78
Rep:
|
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
|
|
|
08-26-2003, 04:52 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
tar -xvzf thefile.tar.gz
tar -xvjf thefile.tar.bzip2
tar -xvf thefile.tar
unzip thefile.zip
What others are bothering you?
|
|
|
08-26-2003, 04:55 AM
|
#3
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
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
|
|
|
08-26-2003, 05:00 AM
|
#4
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
its unzips the files with names likes this \\folder\\filename.txt
instead of making thoose files , it was a tar.gz
|
|
|
08-26-2003, 05:01 AM
|
#5
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
08-26-2003, 05:09 AM
|
#6
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
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 ?
|
|
|
08-26-2003, 05:10 AM
|
#7
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Yes it would just add it.
|
|
|
08-26-2003, 05:12 AM
|
#8
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
could i use tar then , cp -u /folder/ /dest/
?
|
|
|
08-26-2003, 05:14 AM
|
#9
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
so if it would just add it how do i specifie location ?
and are u sure it wont overwrite the whole folders ?
|
|
|
08-26-2003, 05:14 AM
|
#10
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
i got it tar xvzf tar location
|
|
|
08-26-2003, 05:19 AM
|
#11
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
also whats the command to delete a file / folder ?

|
|
|
08-26-2003, 05:21 AM
|
#12
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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
|
|
|
08-26-2003, 05:35 AM
|
#13
|
Member
Registered: Apr 2003
Posts: 78
Original Poster
Rep:
|
cheers
|
|
|
All times are GMT -5. The time now is 02:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|