file wont remove

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

Post the output of:
uname -a
df -n .
ls -b

you have an 'invisible' character(s) in the name of a file.

rm -i ./nmo0*

yoru the man, thanks!(uhh err woman, err i dont know) your the person!!!!

I'm having trouble finding a reference to an '-n' option for df... what does it do?

man df

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.

:slight_smile: I like that!

having it come from DogDay makes it easier to remember!