Delete Directory named "~"

2007-12-25 1:49:00

A colleague of mine has somehow managed to create a directory called "~"
(without the quotes) in the /home directory on a server running Solaris
8.

Any ideas how I can delete it?

# cd /home

# ls -la
dr-xr-xr-x 1 root root 1 Aug 13 09:54 ~

# rm -r ~
rm: cannot read directory ~: No such file or directory

# ls -bq
~

# ls -i
12 ~

# find /home -mount -inum 12 -exec rm {} \;
cannot open /home/~: No such file or directory

Any ideas?

Cheers,

Howard.
IMPORTANT. Any views or opinions are solely those of the author and do not necessarily represent those of United Business Media. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message, please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.

This email may be monitored.

Comments

Got something to say?

You must be logged in to post a comment.