0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux上で文字バケして指定できないディレクトリを消したい

Last updated at Posted at 2019-09-27

文字バケして削除できないディレクトリが・・・!

[root@Dev01 xxxx]# ls -la
合計 0
drwxr-xr-x 2 nobody nobody 32  9月 26 23:32 ??
drwxr-xr-x 3 nobody nobody 17  9月 27 15:41 .
drwxr-xr-x 3 nobody nobody 20  9月 27 15:41 ..

[root@mobileDev01 mission]# rm -r ??
rm: cannot lstat `??': そのようなファイルやディレクトリはありません

ノード番号を調べる

[root@Dev01 mission]# ls -i
978522588 ??

ノード番号を使ってファイルを削除する

find . -inum 978522588  -exec rm -rf {} \;

参考
https://sakura86.com/linux-mojibake-del/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?