1

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?

1 Answer 1

3

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .