先日、Debain Stretchのインストール誤操作で、データ喪失事故に遭遇しました。
インストールの誤操作でデータ消滅
http://ameblo.jp/miyou55mane/day-20170106.html
ファイル復旧ソフトを使ったら重複ファイルが多数あり、これらを削除するアプリ、fdupesを入れました。
$ sudo apt-get install fdupes
使い方は、以下で表示されます。
$ fdupes --help
Usage: fdupes [options] DIRECTORY...
-r --recurse for every directory given follow subdirectories encountered within
-R --recurse: for each directory given after this option follow subdirectories encountered
within (note the ':' at the end of the option, manpage for more details)
-s --symlinks follow symlinks
-H --hardlinks normally, when two or more files point to the same disk area they are
treated as non-duplicates; this option will change this behavior
-n --noempty exclude zero-length files from consideration
-A --nohidden exclude hidden files from consideration
-f --omitfirst omit the first file in each set of matches
-1 --sameline list each set of matches on a single line
-S --size show size of duplicate files
-m --summarize summarize dupe information
-q --quiet hide progress indicator
-d --delete prompt user for files to preserve and delete all others;
important: under particular circumstances, data may be lost when using this
option together with -s or --symlinks, or when specifying a particular
directory more than once; refer to the fdupes documentation for additional
information
-N --noprompt together with --delete, preserve the first file in each set of duplicates and
delete the rest without prompting the user
-v --version display fdupes version
-h --help display this help message
確認しながら削除するなら、
$ fdupes -rd (dir)
最初に検索されたファイルを残し、確認しながら削除
$ fdupes -frdN (dir)
でも、日本語(2バイト文字)のディレクトリだと処理に問題あるみたい。
そこで、GUIのFSlintをSynapticから入れました。こちらの方が使い易いです。
試しに、HDDの中を検索すると、重複ファイルが多数検出されました。
知らず知らずのうちに、あちこちにゴミが溜まっていました。
時々はこれ(FSlint)を使って掃除しなくては。。。
知らぬ間にファイル散乱ゴミ掃除