Quote:
Originally Posted by csaunders
check this out
ls -l nmo*
-rwsr-s--- 1 root dba 19312 Mar 31 14:44 nmo
-rw-r----- 1 oracle dba 0 May 19 2004 nmo0
-rwxr-x--- 1 oracle dba 16512 Mar 31 14:44 nmocat
# rm nmo0
nmo0: No such file or directory
# id
uid=0(root) gid=1(other)
what gives?!?!?!?!
Someone taught me once to take your cat to the vet:
ls -l nmo*|cat -vet
note the special characters in the filenames when you view that.
Check the man page for what the -v -e -t options do. It should become clear if you have a space or some other non printable character in your filename.
For example:
# ls -la
-rw-r--r-- 1 username system 0 Jun 10 15:09 myfiname
but if we use the cat -vet options we see the following:
#ls -la|cat -vet
-rw-r--r-- 1 username system 0 Jun 10 15:09 myfil^?name$
the ^? is a backspace character.
So to delete that file I would have to type rm -- myfil(CTRL V BACKSPACE)name
Thats probably confusing but its friday and everyone is walking out the door and I'm rushing to join them. Good luck.