In my Redhat Linux 6 I have a very strange file that doesn't leave the system no matter how I delete it
"web.process" CANNOT BE DELETED.
It's in /opt/folder/web/tmp/default/web.process
This "web.process" CANNOT be deleted. The command I have tried are:
command "rm -rf /default"
prompts > "directory is not empty"command "rm -f /web.process"
prompts > "no such file or directory"command "ll" inside the folder
prompts > "??????????? ? ? ? ? ? web.process"
How can I delete this file?
COMMAND: "ls -a /opt/folder/web/tmp/default/web.process"
OUTPUT:
ls: cannot access /opt/folder/web/tmp/default/web.process: No such file or directory
COMMAND: "ls -la /opt/folder/web/tmp/default/"
OUTPUT
ls: cannot access /opt/folder/web/tmp/default/web.process: No such file or directory
total 0
drwxrwxr-x. 2 root root 34 Jul 24 14:35 .
drwxrwxr-x. 3 root root 20 Jul 24 11:07 ..
??????????? ? ? ? ? ? web.process
it seems to me that the file has lost it's attributes and it's impossible to delete it off my sda3.
df -k /opt/tmp/default
pasted into the question?rm -rf /default
,rm -rf default
, andrm -rf /opt/tmp/default
are generally three completely different commands. The first and last, in particular, almost certainly don't do the same thing./default
; nowhere is there any suggestion that it's in/opt/tmp
except what you write in your first line. Can we get the output ofls -la /
, and this time, please edit it into your question.rm -rf
;default
,/default
, and/opt/tmp/default
are usually three different files/directories. You definitely need to understand what putting a/
in front of a file name does in UNIX before going too much further!/opt/folder/web/tmp/default/
, in which case nothing else you type in your question is relevant, or is it in/default
, in which case your question seems confused. Could we get the output ofls -la /opt/folder/web/tmp/default/web.process
pasted into the question, to try to clear this up a bit?