Answer the question
In order to leave comments, you need to log in
How to delete a file in linux?
I turned on the PSP and saw that some old photo remained on it. PSP sees it and opens it. Now I connected the PSP to my computer and when I opened the file manager, I did not find this photo. Opened the console entered ls saw this:
-????????? ? ? ? ? ? 'Max2007 026.jpg'
I'm trying to delete it with rm - it says there is no such file.
rm -rf doesn't complain, but it doesn't delete the file either. How can I delete this photo?
Answer the question
In order to leave comments, you need to log in
Do this
ls -li
in the left column of the inode number
then
find . -inum INODENUM -exec rm -rf {} \;
Apparently you have rights to the 6xx directory, not 7xx (there is not enough "x" key for the user/group). Correct the permissions on the directory, then you should see the permissions on the files.
I delete such things through MC.
# sudo apt-get install mc
# sudo mc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question