Quand la commande rm ne peux rien pour vous pour supprimer un fichier, utilisation des commandes ls et de find pour vous sauver la vie : )
La commande ls -i vas permettre de trouver le numéro d'inode du fichier :
=>ls -alhtotal 20Kdrwxr-xr-x 3 root root 4,0K 5 juil. 07:08 .drwxrwxrwt 20 root root 12K 5 juil. 07:07 ..-rw-r--r-- 1 root root 0 5 juil. 07:08 'tit?tot.txt'drwxr-xr-x 2 root root 4,0K 5 juil. 07:08 'tout?.jpg' =>ls -i3540145 'tit?tot.txt' 3540146 'tout?.jpg'
La commande find va permettre de supprimer le fichier ou le répertoire :
=>find . -inum 3540145 -delete
=>ls -alhtotal 20Kdrwxr-xr-x 3 root root 4,0K 5 juil. 07:10 .drwxrwxrwt 20 root root 12K 5 juil. 07:07 ..drwxr-xr-x 2 root root 4,0K 5 juil. 07:08 'tout?.jpg'
=>find . -inum 3540146 -delete =>ls -alhtotal 16Kdrwxr-xr-x 2 root root 4,0K 5 juil. 07:11 .drwxrwxrwt 20 root root 12K 5 juil. 07:07 ..