Como remover o arquivo no Linux com? no nome

0

Não é possível mover ou remover o arquivo com? no nome. Alguma ideia? Já tentei o seguinte:

# ls
manager?%80%99s-viewpoint.html  what-wcsap-can-offer-you-?%80%93-guide-new-directors.html

# mv manager\?%80%99s-viewpoint.html mangers-viewpoint.html
mv: cannot stat ‘manager?%80%99s-viewpoint.html’: No such file or directory

# rm ./manager\?%80%99s-viewpoint.html 
rm: cannot remove ‘./manager?%80%99s-viewpoint.html’: No such file or directory

# rm -- 'manager?%80%99s-viewpoint.html' 
rm: cannot remove ‘manager?%80%99s-viewpoint.html’: No such file or directory

# rm -- "manager?%80%99s-viewpoint.html" 
rm: cannot remove ‘manager?%80%99s-viewpoint.html’: No such file or directory

# rm -- manager\?%80%99s-viewpoint.html 
rm: remove regular file ‘manager?%80%99s-viewpoint.html’? y
rm: cannot remove ‘manager?%80%99s-viewpoint.html’: No such file or directory

# rm manager*-viewpoint.html 
rm: remove regular file ‘manager?%80%99s-viewpoint.html’? y
rm: cannot remove ‘manager?%80%99s-viewpoint.html’: No such file or directory

# rm -i manager*-viewpoint.html 
rm: remove regular file ‘manager?%80%99s-viewpoint.html’? y
rm: cannot remove ‘manager?%80%99s-viewpoint.html’: No such file or directory

# ls -i
48374896 manager?%80%99s-viewpoint.html
48376904 what-wcsap-can-offer-you-?%80%93-guide-new-directors.html

# find -inum 48374896
./manager?%80%99s-viewpoint.html

# find -inum 48374896 -exec rm -i '{}' \;
rm: remove regular file ‘./manager?%80%99s-viewpoint.html’? y
rm: cannot remove ‘./manager?%80%99s-viewpoint.html’: No such file or directory

# find -inum 48374896 -delete
find: cannot delete ‘./manager?%80%99s-viewpoint.html’: No such file or directory
    
por Mist 16.05.2016 / 00:57

1 resposta

0

OK. Minha culpa. É um cliente VirtualBox com os arquivos no host. Quando vou ao host do VB, posso lidar com os arquivos normalmente. Como faço para marcar a pergunta como respondida?

    
por 16.05.2016 / 01:24

Tags