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!
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.
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.
My problem is today I have decided to change the names of one of my users on my fedora core 1 system and its gone all wrong. I decided to create a new user and directory and move the old users files into the new directory and delete the old user. Only prob is it I don't know how to move all those hidden configuration files starting with '.' and I'm finding myself having to reconfigure all of the tweaking that I've done in the previous user. So does anyone have any suggestions as how to move hidden files.
"tar cvf" to archive all your files from a given directory into a single one, and then
"tar xvf" to extract them in a new directory (which can be on a different computer). Please, refer to "tar" man page.
You will not miss anything, execpt maybe symbolic links (to check).
An other one, less general, is to use "find" and its many options. There are probably others. I recommand "tar"
If you are root, go to the console in the old directory and then you use the command mv .* /home/newuser it will move those files from that directory to the new one.
Once there change the owner of the files, chown newuser:newgroup .* that will make them owned by the newuser.
That should take care of it all, moving the files to the new directory and changing the owner to the new user.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187
Rep:
ls -al shows hidden files
tar clfv - .|(cd /newdirectory; tar xpf - --same-owner)
copies all files from current directory and below to /newdirectory. if your owner name has changed, as root, go in /newdirectory and
find -exec chown newowner {} \;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.