Hidden files destroys 20G

Joined
Nov 6, 2006
Messages
8
Reaction score
0
Points
1
Location
Greenville
Your Mac's Specs
MacBook
I'm new to OSX, but I'm not dumb, though it may sound so. I was playing around at the terminal wanting to see how OSX deals with hidden files. So here's how I screwed up 20 gigs in one line:

gala:/users/Ephilei Ephilei$ touch .new
gala:/users/Ephilei Ephilei$ ls
Alien Books Desktop Documents Library

Notice the music, pictures, movies, and sites folders are now mysteriously gone. ***! The aliases are broken, Spotlight is clueless, and Finder tells me I have 20 more gigs free than 5 minutes ago. I can only guess this has something to do with the fact that all those folder appear alphabetically after ".new".

Now I'm scared to touch anything for fear I'll lose my chance to recover those files. Please help!
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
ls doesn't show hidden files

Try ls -a to show all files
 
OP
E
Joined
Nov 6, 2006
Messages
8
Reaction score
0
Points
1
Location
Greenville
Your Mac's Specs
MacBook
Thanks, but that wasn't the point. A correction: The movies and music folders don't come after "new" so that's not a connection.
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
I just did those exact commands that you did and my folders are still all there so you must have done something else to remove the folders
 
OP
E
Joined
Nov 6, 2006
Messages
8
Reaction score
0
Points
1
Location
Greenville
Your Mac's Specs
MacBook
Wow, thanks for being so risky! I'm racking my brain, but I don't recall having done anything else besides web browsing. But if Finder says the space is empty, it's gone, right?
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
I don't store anything in my Movies/Music/Sites folder to begin with and have backups of everything else in case it did actually screw stuff up (that and I found it really hard to believe created a hidden file would do anything to screw up directories)

Click the up key when you are in terminal to see all of the commands that you have done

You can also use the command 'find' to see if you can find a file
 
Joined
Sep 8, 2005
Messages
111
Reaction score
1
Points
18
Location
ontario
Your Mac's Specs
powerbook 12-inch G4 1.55ghz 80g 512mb superdrive
where do try those comands?
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
OP
E
Joined
Nov 6, 2006
Messages
8
Reaction score
0
Points
1
Location
Greenville
Your Mac's Specs
MacBook
Thanks for the 'find,' it's really cool, but to no avail. Of course I made a backup, but I've made a lot of files and pictures in 6 weeks.

The immediately previous command was also to show the contents of my home dir (not more than 60 sec prior) which is why I feel confident there's a connection. However, the connection that a hidden file would delete folders is hard for me to believe too.
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
did you happen to change your home directory name at some point in this?
 
OP
E
Joined
Nov 6, 2006
Messages
8
Reaction score
0
Points
1
Location
Greenville
Your Mac's Specs
MacBook
I never renamed it, but I did try moving it just for the heck of it. I was promptly told I couldn't.
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
I never renamed it, but I did try moving it just for the heck of it. I was promptly told I couldn't.
because it says Ephilei$ which is your short name, but the short names can only be in lowercase letters and when you rename the home folder it will create a copy of the old home folder and you won't see any of your files.
 
OP
E
Joined
Nov 6, 2006
Messages
8
Reaction score
0
Points
1
Location
Greenville
Your Mac's Specs
MacBook
I don't understand. What are you getting at? Are suggesting it's possible the folders were moved when I tried moving the home dir? I tried moving it to the desktop but there's no evidence there now. (I realize now that was a really stupid thing to do since the desktop dir is inside the home dir %(

"Ephilei" (capitalized) is my short and long name. Yes, on linux user names must be lowercase, but that doesn't appear to be the case here (but I'm new).
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top