Linux 便利コマンド
この間、ダブルバイト+??がついたファイルを消そうと思い色々試したのですが、
Linuxはinode(アイノード)で消す方法もあるのですねぇ。
# cd <消したいディレクトリ>
# ls -iq ← inode 確認
# find . -inum <確認したinode番号> -exec rm -f {} \;
※ディレクトリの消去は、
# find . -inum <確認したinode番号> -exec rm -rf {} \;
くれぐれも複数の同じサーバーがあったとしても、同じinodeで消さないように・・・
Linuxはinode(アイノード)で消す方法もあるのですねぇ。
# cd <消したいディレクトリ>
# ls -iq ← inode 確認
# find . -inum <確認したinode番号> -exec rm -f {} \;
※ディレクトリの消去は、
# find . -inum <確認したinode番号> -exec rm -rf {} \;
くれぐれも複数の同じサーバーがあったとしても、同じinodeで消さないように・・・
by arutenya | 2007-03-15 10:39 | お仕事