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.
Please guide me for using cp and rename for existing directories. What i want to do is
(1) i like to rename an existing dir. Which command should i use?
(2) i like to copy a directory including its files and sub directories to another place. Pls show me how to do it.
(3) i have a tar.gz file and guide me how to untar it into a directory with name i want to give.
My linux box is installed from LiveCD of Ubuntu 8.04LTS. Is there any command to delete a directory tree such as windows deltree command.
1) Use the "mv" command to rename files or directories.
2) Look at the "man cp" manpage. Use the -R option. If you use the -a option, you will retain the original permissions and ownerships.
3) Look in the "info tar" manual. If this is a tarball, then it has a base directory already and you run: tar -xvzf <tarball-name>
The dash is optional if all of the options are together. The f option precedes the filename. There are numerous options for tar. For example, you can save a timestamp when creating an archive and then later create an incremental backup. Also look at the "info find" manpage. Often find is used to locate files with certain criteria and the list is used by tar.
Thank you to all for yr kind guidance. I've already reading with man cp man rename but i missed mv command. Anyway i will now try to read what you have suggested and try all things you've pointed out. recently our isp has some DNS problems and it is very slow or have no connections. As OKOS has said, i do agree learning to fish is for life. Now i try to get into the link you mentioned, but connection is too slow to get connected. Anyway i try later.