Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm wondering what else should be executed and what directory is generally the desired one to untar things in?
I went to my Home folder and created a new file 'TARS'
I than created a new empty document and titled it 'Practice'
This is what I have so far but have not a clue what the next step is that I should be initiating or what else I need to do-
ztcoracat:~$ tar cvzf tarfile.tar.gz TARS
Where will Debian put this tar-ball that I have created and any other tar that I create in the future?
Does that depend on what directory I am in at the present or does that need to be indicated at the end of the new tar cmd ? Like so:
the tar-ball will be put exactly where you tell it to be put. In your example it will be put in the current directory (in that case your home directory). If you want to it to go somewhere else just specify it. Eg to put it in /tmp:
ztcoracat:~$ tar cvzf /tmp/tarfile.tar.gz TARS
Regarding where to untar things, that depends entirely on what it is you are untaring.
Let's say for example I download a tarball and it is an application that I want to install.
Is there a better suited directory other than downloads for this tarball?
Hmm, still depends on what it is, and who will be using it. For example, a common place for prepackaged binaries like this might be /opt/, or perhaps if it is only for one user, in that users home directory, or even ~/opt/. If the package follows the FHS then perhaps /usr/local or if just for a single user ~/local. It is always best to check the documentation for whatever it is you are untarring/installing.
sorry no. I'm happy to help you with specific problems, but I'm not going to generate homework exercises for you.
This is not homework I am in my late 50's- and retired- -
I understand now how to create a tarball.
Now I just need to learn how to unzip or extract it-
I went to the tarfile.tar that I made and opened my home directory. Upon opening the home directory I right clicked on my newly created tar and the drop down menu gave me:
-open with Archive Manager
Do I choose Extract here or open the terminal and use this cmd?
ztcoracat:~$ tar -zxvf tarfile.tar.gz
ztcoracat:~$ tar -zxvf file.tar.gz
tar (child): file.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I know it's not a good practice to assume but I'll assume the first try was correct because I used the name (tarfile) that I gave.
Pretty much yes...
Normally if you're eg installing some tool, then the web page will make a recommendation.
Alternately, I usually go for /opt/. This is just to unroll the tar file. Once its unpacked, the accompanying docs (if any) usually tell whether you can specify final install dir (if you can change it).
Typically for a src code set (usually in C), you invoke the make cmd and specify a config prefix; see the docs.
If its a backup you made, you should know where to put it
Check the -P option if you are doing this
Basically, as you can see, there's a LOT of options to this cmd. Easiest is to google through a load of examples and check the flags used until you feel comfortable.