LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 03:50 AM   #1
rm_-rf_windows
Member
 
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 292

Rep: Reputation: 27
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 03:03 AM.
 
Old 06-29-2007, 03:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just use the -a flag to include dot files.
 
Old 06-29-2007, 03:52 AM   #3
b0uncer
LQ 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, 05:26 AM   #4
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

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


Reply



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 22 12-13-2019 05:20 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:25 AM.

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
Open Source Consulting | Domain Registration