Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Here's a fun question. I downloaded a file that contains all the gkrellm skins and untarred it only to discover that it contains about 200 individual tar files. I want to, in the easiest way possible, run tar -xvzf filename on each one and then move the folder that gets created by the untarring process to ~/.gkrellm2/themes/. Do I need to do some shell script with variables and loops to accomplish this? I assume I can do this with just the tar and mv commands alone. Actually, once I get them all extracted, I think I can just mv *gz (since some are .tar.gz and some are .tgz) to another place and then mv * to the themes folder. I do need help on untarring all of them though.
I'm not sure exactly how that use of tar works. Will it put all the files in the tar in ~/.gkrellm2/themes, or will it create a folder ~/.gkrellm2/themes/filename/ and put all the files in there (that's what I need). Also, that takes care of one, but there are 200 individual tarballs that I need to do this with (hopefully not one at a time). Any suggestions?
if the packager did it right, each tar should unpack to it's own dir. for tar, try tar --help or man tar. so using the command i posted before u could possibly try to cd to the dir that u have the tarred file and try:
tar -xvf * ~/.gkrellm2/themes/
this seems like it would extract everything in that dir that u are currently in and move them to ~/.gkrellm2/themes/ not too sure if this will work though, seems like it should