Accidently deleted a hidden file I accidentally deleted the .localized file from my mac desktop and then emptied my trash. How to I recover it?
Did it make any problems to your system?


  The ".localized" files simply contain user language dependent data.
  This allows the Finder to display localized folder and file names. A
  good example of this is the "Applications" folder, which on the file
  system is called "Applications" but magically appears to the user with
  a localized name (e.g. "Applicazioni" in Italian).


To restore it:


Open the terminal

Type defaults write com.apple.finder AppleShowAllFiles TRUE
Type killall Finder

Open the finder and go to the Desktop folder
Start Time Machine
Use Time Machine for restoring the .localized file
Open the terminal

Type defaults write com.apple.finder AppleShowAllFiles FALSE
Type killall Finder



Skip steps 1 and 5 if you already see the hidden files in Finder and you like it.