Adam Voigt wrote:
ALL of the discussion on how to delete this directory has centered on using relative pathnames to achieve the task.You need to do an escape, for example:
"vi ~"
Will tell you your trying to open a directory, and infact list the contents, but this:
"vi \~"
Will create a new file, called ~, so logically, you could use:
"rm -rf \~"
A simple and foolproof command would use the full pathname such as
"rm -rf /home/<username>/~" and you never have to worry about the shell expansion of a single "~" character. :-)
This method takes the shell expansion out of the picture and the path is absolute and unambiguous.