Code: Select all
[root@sysname /]# ls -dl so*
drwxr-xr-x. 2 root root 0 Mar 10 17:47 socrrates
[root@sysname /]# ls -l so*
ls: cannot open directory socrrates: No such file or directory
[root@sysname /]# ls -dl so* | cat -vet
drwxr-xr-x. 2 root root 0 Mar 10 17:47 socrrates$
[root@sysname /]# file socrrates
socrrates: directory
[root@sysname /]# cd socrrates
-bash: cd: socrrates: No such file or directory
[root@sysname /]# rm -ir socrrates
rm: descend into directory `socrrates'? y
rm: remove directory `socrrates'? y
rm: cannot remove `socrrates': No such file or directory
UPDATE: I did a search for the string "socrrates" in every file in my /etc directory, and I found an entry in /etc/mtab. I then ran the command "umount -f /socrrates", which worked, after which I was able to use "rm" to remove the directory. Thanks to tunk for his response.