SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Been using Slack for a while now, all is going well....until I download source files. I am constantly having to refer to brunolinux.com for the correct syntax to extract the different file associations (tar.gz, tar.bz, tar.bz2 etc)
Is there a program I can install that will give me the ability to issue one command that will work out what type of file it is, then extract the files?
I tried googling, but couldn't express all the above in a query!
case $SUFFIX in
gz) gunzip $INPUTFILE ;;
bz) your command here ;;
bz2) your command here ;;
*) echo "Sorry I don't recognize the file type for $INPUTFILE "
tar xvf $BASEFILE
The tar is the end of the script above. I'm too lazy to lookup up syntax for extracting the bz or bz2 so will let you do that - essentially just put it in those lines and use "$INPUTFILE" as the file you give the command (like the gz line).
The script would unzip your file (basically create one without the gz, bz or bz2 extension). It would then run the tar command to untar the unzipped file. The tar command actually has a gunzip flag built into it so you could modify it to do that instead - I put it at the bottom because the untar would be common action after each of the unzips.
NOTE: Above is informational only - no warranty expressed or implied - use it at your own risk.
GUI fronends to tar generally take considerably longer to extract stuff as well. If you omit verbosity at the prompt with tar then you can extract stuff way quicker than any other method. I generally use the prompt as well. depends on whether or not I feel like typing at the moment.
try extracting a kernel source with Ark or Fileroller and then execute tar (no -v) from the prompt at the same time. You'll be halfway done compiling the bzImage before the frontend completes...
Originally posted by OSourceDiplomat If your system allows root actions for non-root users, it is a) somewhat unusual, and b) extremely insecure.
No, my system doesn't; but that's my point. I would like to sometime, do things graphically as root, (like extracting, browsing, deleting obsolete files). I can't, unless thru terminal. Or I don;t know how?
You may want to use Gksu - it runs the program that follows as root. In other words, if you run the following:
- a window will pop up and prompt you to enter root password. After that, Nautilus will run as root until closed.
You may not have Gksu installed by default. It is good for making program buttons, too - because of the authentication box popping up. Nice UI feature.