Re: delete ~ directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux