Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-29-2007, 03:50 AM   #1
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 257

Rep: Reputation: 26
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:
$ 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.


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

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

Rep: Reputation: Disabled
du ~/.*
or even
du -h ~/.*
should give you an idea what's taking up the space.
Old 06-29-2007, 05:26 AM   #4
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,141
Blog Entries: 2

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


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 03:31 AM
Command to copy files/folders but skip bad/corrupt files?? leemoreau Linux - Newbie 2 04-02-2007 02:27 PM
Show hidden files and folders in Mac OS X Akiva Other *NIX 2 07-22-2005 10:54 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM
Hundreds of hidden files in home directory doobers Linux - Newbie 3 02-14-2005 02:57 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:09 AM.

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