delete ~ directory
Jeff Vian
jvian10 at charter.net
Mon Apr 19 15:52:58 UTC 2004
Adam Voigt wrote:
>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 \~"
>
>
ALL of the discussion on how to delete this directory has centered on
using relative pathnames to achieve the task.
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.
More information about the fedora-list
mailing list