削除できません:対応するファイルやディレクトリはありません。

削除できません:対応するファイルやディレクトリはありません。

ちょうどファイルを作成し、コンテンツでいっぱいになった場所に作成したプログラムを実行しました。ただし、名前の生成に問題が発生し(または少なくとも期待どおりに機能しない)、フォルダに「存在しない」ために削除できない4つのファイルがあります。

コマンドの出力は次のとおりです。

ls -li:

ls: cannot access één: No such file or directory
ls: cannot access wetenschap­pen.: No such file or directory
ls: cannot access verantwoor­delijk: No such file or directory
ls: cannot access woord wordt: No such file or directory
total 0
? -????????? ? ? ? ?            ? één
? -????????? ? ? ? ?            ? woord wordt
? -????????? ? ? ? ?            ? verantwoor­delijk
? -????????? ? ? ? ?            ? wetenschap­pen.

rm -i -- *:

rm: remove regular file `één'? y
rm: cannot remove `één': No such file or directory
rm: remove regular file `woord wordt'? y
rm: cannot remove `woord wordt': No such file or directory
rm: remove regular file `verantwoor­delijk'? y
rm: cannot remove `verantwoor­delijk': No such file or directory
rm: remove regular file `wetenschap­pen.'? y
rm: cannot remove `wetenschap­pen.': No such file or directory

rm -rf folder:(「フォルダ」はファイルが配置されているフォルダです)

rm: cannot remove `folder': Directory not empty

find . -type f -delete:(Uditha Desilvaの回答)

find: cannot delete `./één': No such file or directory
find: cannot delete `./wetenschap­pen.': No such file or directory
find: cannot delete `./verantwoor­delijk': No such file or directory
find: cannot delete `./woord wordt': No such file or directory

strace -o out rm -f -- *:アウトコンテンツ

このファイルをどのように削除できますか?
ちなみに、私はrootアクセス権を持っていないので、rootアクセスを必要としないオプションを好みます。

ベストアンサー1

UIから「ごみ箱に移動」でファイルを削除するだけです。その後、ごみ箱に移動し、そこから削除します。このプロセスは、Linuxシステムからファイルを永久に削除します。

おすすめ記事