I have a file called ".hgignore copy" and I want to rename it to ".hgignore". With a regular file, if I click on the name in the finder, I can change it. But with a hidden file, it won't let me do that. How can I change the name?

link|improve this question

It won't show the file, it won't let you click on the file, or it won't let you rename it? Which? – Ignacio Vazquez-Abrams Dec 10 '10 at 14:53
feedback

2 Answers

up vote 3 down vote accepted

In the worst case you could always open a terminal and rename it there.

mv ".hgignore copy" .hgignore
link|improve this answer
typed faster, i'll delete mine – aking1012 Dec 10 '10 at 14:54
feedback

You can rename the file in Terminal by entering

mv .hgignore\ copy .hgignore

You can also enable displaying of hidden files in Finder by entering

 defaults write com.apple.finder AppleShowAllFiles TRUE

in Terminal and restarting Finder by entering

 killall Finder

afterwards


A more user-friendly alternative to the second part of this answer is the use of Secrets, a "preference pane" extension for System Preferences, that lets you set this "hidden files" option for Finder in a more userfriendly way.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.