LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices



Reply
 
Search this Thread
Old 06-29-2007, 04:50 AM   #1
rm_-rf_windows
Member
 
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 23
How can I copy hidden home directory configuration files and folders?


I've copied all of the files and folders in my home directory to another computer using a USB flash drive (it took me quite a while). I then realized that I forgot to copy the configuration files. So I tried to copy them. The idea was to copy all files and folders beginning with a "." and their contents. The idea was then to be able to simply copy the contents into a new home directory to save all of my settings, my configuration, etc. , for example, if I did a fresh new installation of FC. Is this possible?

I think it's a symbolic or hard link problem. My configuration files couldn't possibly take up more than 1GB of space, could they? Or perhaps there is a 'temp' folder that stores tons of data - webpages - I don't know.

Here's what I've tried:
Code:
$ cp -r /my/home/directory/path/.[a-z]* /media/usbflashdrive
I was then going to substitute [a-z] with [A-Z], run the command again, and then again with [0-9]. I then thought to myself: "Why am I making life so complicated? Why not do the good old cut and paste thing?!". And I got a message saying that there wasn't enough room on my 1GB USB flash drive as well as some error messages.

Help!!

Last edited by rm_-rf_windows; 07-01-2007 at 04:03 AM.
 
Old 06-29-2007, 04:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
just use the -a flag to include dot files.
 
Old 06-29-2007, 04:52 AM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Code:
du ~/.*
or even
Code:
du -h ~/.*
should give you an idea what's taking up the space.
 
Old 06-29-2007, 06:26 AM   #4
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware x86 and ARM and Porteus
Posts: 655

Rep: Reputation: 45
Enable dotfile in Your file manager (I use mc that has it enabled by default).
The rest is easy...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you copy hidden files from one directory to another? Akhran Linux - Newbie 19 12-29-2011 04:31 AM
Command to copy files/folders but skip bad/corrupt files?? leemoreau Linux - Newbie 2 04-02-2007 03:27 PM
Show hidden files and folders in Mac OS X Akiva Other *NIX 2 07-22-2005 11:54 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 09:23 PM
Hundreds of hidden files in home directory doobers Linux - Newbie 3 02-14-2005 03:57 PM


All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration