E
E
elisey4742016-11-23 14:58:42
linux
elisey474, 2016-11-23 14:58:42

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

3 answer(s)
R
romy4, 2016-11-23
@romy4

Do this
ls -li
in the left column of the inode number
then
find . -inum INODENUM -exec rm -rf {} \;

D
Dmitry, 2016-11-23
@plin2s

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.

S
Sergey Goryachev, 2016-11-23
@webirus

I delete such things through MC.

# sudo apt-get install mc
# sudo mc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question