Summary: Delete Directory named "~"

From: Howard Hurst (howard.hurst@unitedadvertising.co.uk)
Date: Wed Aug 13 2003 - 07:17:42 EDT


Thanks to everyone who replied (over 37 of you!).

The main issue I was having trouble with was due to the fact that the
directory was in /home and not a normal directory.

I took another look at the /etc/autohome file... Again, on first
examination, it looked fine, but then as I scrolled down I realised that
the last line of the file was in fact a "~" - i.e. someone had
physically entered a "~" rather than the normal ones ("empty lines")
that are displayed in Vi. I removed this rogue "~" and rebooted the box
and all was well.

Thanks for your help - at least I'll know what to do if I ever come
across a strangely named file in the future!

Howard.

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Howard Hurst
Sent: 13 August 2003 10:02
To: Sun Managers
Subject: Delete Directory named "~"

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
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