I use the command ls
in a terminal. I found this wired file with the prefix ~$
.
When I was trying to remove it, the terminal responded No such file or directory
.
I even tried renaming it, but it still showed the same error.
How do I successfully remove or file the file?
Best Answer
Because the
filename
contains$-
, you need to quote the filename when using therm
command, and other commands, as the$-
unquoted is being expanded to a name other then the actual filename and is why the file isn't been found.Terminal command examples: