Can't Remove A File
I am on a RHEL 4 server and was looking under the / directory and noticed an add entry from a few days ago:
Code:
[root@lt2fs3 /]# ls -l Does anyone know what my options are...? |
Try lsof root@10.1.1.10 and see if you can find out what process is using the file, then kill that process. After that, you should be able to delete it or whatever.
EDIT: You might need quotes around the filename since it has special characters. |
Quote:
Code:
[root@lt2fs3 /]# lsof "root@10.1.1.10" |
Sorry, I'm not in front of my linux box. I'm a moron, it should be lsof | grep root@10.1.1.10 possibly with the quotes.
EDIT: Just for good measure, here's a good article on using lsof. |
Quote:
Code:
[root@lt2fs3 /]# lsof | grep "root@10.1.1.10" |
What if you just grep for "root"
|
Just out of curiosity, were you able to resolve this?
|
Nope - nothing seemed to have worked. Its strange. Its there listed as a file but the system can't address it I assume due to the special character in the name so I can't delete it either...sucks!
|
Can you delete it by inode number? Try ls -il to find out the inode number. Then delete it with find . -inum XXXXXX -exec rm -i {} \; (where XXXXX is the inode number).
|
try lsattr [filename]
if you see an i in there try chattr -i [filename] remember to escape the special characters in the file name so you get the name right. i is the immutable flag Once you chattr +i a file nothing can be done to it until you chattr -i it. -Viz |
[QUOTE
-rw-r--r-- 1 root root 19167 Feb 6 13:23 root@10.1.1.10 [/QUOTE] As per my knowledge, I think that you were trying to do a scp from that machine to 10.1.1.10 and while doing so you have not placed a 'colon' after that. And that's why the file was created. That seems to be a binary file. Being root you should be able to delete it. Regards, -- Prasanta |
have u tried
rm ./root@10.1.1.10 or rm ./"root@10.1.1.10" |
All times are GMT -5. The time now is 01:55 AM. |