Delete Directory named "~"

From: Howard Hurst (howard.hurst@unitedadvertising.co.uk)
Date: Wed Aug 13 2003 - 05:02:09 EDT


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.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:55 EDT