Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have no items on my desktop in finder. When I enter the "ls" command in terminal at my desktop, two mysterious invisible files pop up:

~$Revised_December_EOM_Report-2.xlsx
~$Revised December EOM Report-2.xlsx

I've tried "sudo rm -rf "(both file names)", but still can't seem to remove them. I tried with and without quotes. I also tried the names without the ~$ prefix. Any ideas?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You need to escape the $ sign:

rm ~\$Revised_December_EOM_Report-2.xlsx

Alternatively, enable displaying hidden files in Finder by editing its defaults and delete from the GUI.

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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