fdupes - Áߺ¹ÆÄÀÏ °ü¸® ¸í·É¾î
Âü°í
smileserv@CHONNOM_OFFICE:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DEscRIPTION="Ubuntu 14.04.3 LTS"
¿©±â¼´Â Ubuntu ȯ°æ¿¡¼ Å×½ºÆ®ÇßÀ¸¸ç RHEL/CentOS ¿¡¼µµ yum À¸·Î ¼³Ä¡ °¡´ÉÇÕ´Ï´Ù.
smileserv@CHONNOM_OFFICE:~$ sudo apt-get install fdupes
RHEL/CentOS
# yum install fdupes
Å×½ºÆ®¸¦ À§ÇØ ³»¿ëÀ» µ¿ÀÏÇÏ°í ÆÄÀϸíÀÌ ´Ù¸¥ ¿©·¯°³ÀÇ ÆÄÀÏÀ» »ý¼º
smileserv@CHONNOM_OFFICE:~$ mkdir /home/"$USER"/test_dir
smileserv@CHONNOM_OFFICE:~$ cd /home/"$USER"/test_dir
smileserv@CHONNOM_OFFICE:~/test_dir$ for i in {1..15}; do echo "Number One SMILESERV. www.cloudv.kr" > SMILESERV_${i}.txt ; done
smileserv@CHONNOM_OFFICE:~/test_dir$ ls
SMILESERV_1.txt SMILESERV_12.txt SMILESERV_15.txt SMILESERV_4.txt SMILESERV_7.txt
SMILESERV_10.txt SMILESERV_13.txt SMILESERV_2.txt SMILESERV_5.txt SMILESERV_8.txt
SMILESERV_11.txt SMILESERV_14.txt SMILESERV_3.txt SMILESERV_6.txt SMILESERV_9.txt
smileserv@CHONNOM_OFFICE:~/test_dir$ cat SMILESERV_1.txt
Number One SMILESERV. www.cloudv.kr
smileserv@CHONNOM_OFFICE:~/test_dir$ cat SMILESERV_15.txt
Number One SMILESERV. www.cloudv.kr
°æ·Î³» Áߺ¹ÆÄÀÏ °Ë»ö
smileserv@CHONNOM_OFFICE:~/test_dir$ fdupes /home/"$USER"/test_dir/
-r ¿É¼ÇÀº ÇÏÀ§µð·ºÅ丮 ±îÁö ¸ðµÎ °Ë»ö
smileserv@CHONNOM_OFFICE:~/test_dir$ fdupes -r /home/"$USER"
Progress [8757/41824] 20%
-S Áߺ¹ÆÄÀÏ »çÀÌÁî Ãâ·Â
smileserv@CHONNOM_OFFICE:~/test_dir$ fdupes -S /home/"$USER"/test_dir/
Áߺ¹ÆÄÀÏ »èÁ¦
smileserv@CHONNOM_OFFICE:~/test_dir$ fdupes -d /home/"$USER"/test_dir/
º¸È£ÇؾßÇÒ ÆÄÀϹøÈ£ ÀÔ·Â
¿©±â¼´Â 1 °ªÀ» ³Ö¾úÀ¸¸ç 1¹ø¿¡ ÇØ´çÇÏ´Â ÆÄÀÏ SMILESERV_3.txt ÆÄÀÏÀ» Á¦¿ÜÇÑ ³ª¸ÓÁö ÆÄÀÏÀº ¸ðµÎ »èÁ¦
smileserv@CHONNOM_OFFICE:~/test_dir$ ls
SMILESERV_3.txt
¼¼ºÎÀûÀÎ ¿É¼ÇÀº ¾Æ·¡ help ¸¦ Âü°íÇϽñ⠹ٶø´Ï´Ù.