|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 65 article |
2006-12-04 21:40:03 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
¸®´ª½º find ¸í·É¾î ÆÁ. |
|
|
ƯÁ¤ ¿ë·® ÀÌ»óÀÇ ÆÄÀÏÀ» ã°í ½ÍÀ»¶§
find /home/ -size +2000000
ƯÁ¤ È®ÀåÀÚÀÇ ÆÄÀÏÀ» ã°í ÀÚµ¿À¸·Î Áö¿ì°í ½ÍÀ»¶§
find /home/ -name *.asf -exec rm -rf {} \;
ÆÛ¹Ì¼Ç 706ÀÎ µð·ºÅ丮¸¦ Â÷ÀÚ¼ 707·Î º¯È¯
find /home/ -perm 706 -type d -exec chmod 707 {} \;
chmod 707 `find -perm 706`
»ç¿ëÀÚ °èÁ¤¿¡¼ ȯ°æ¼³Á¤ ÆÄÀÏ °Ë»öÇß³ª È®ÀÎ
find /home/ -maxdepth 2 -name .bash_history -exec grep -H .conf {} \; |
less
3ÀÏ À̳» µ¿¾È ¼öÁ¤µÈ ÆÄÀÏ È®ÀÎ
find /home/ -mtime -3
3½Ã°£ À̳» µ¿¾È ¼öÁ¤µÈ ÆÄÀÏ È®ÀÎ
find /home/ -mmin -180
¼öÁ¤µÈÁö 3½Ã°£ ÀÌÈÄµÈ ÆÄÀÏ
find /home/ -mmin +180
ÇöÀçÆú´õ¿¡¼ ¼öÁ¤µÈÁö 1½Ã°£ À̳»ÀÇ ÆÄÀϵ鸸 ¾ÐÃà
tar cvzf filename.tgz $( find ./ -type f -mmin -60 )
ƯÁ¤ ³»¿ëÀÌ ÀÖ´Â ÆÄÀÏã±â [È®ÀåÀÚ php php3 htm html]
find \( -iregex ".*\.php3?" -o -iregex ".*\.html?" \) | xargs egrep "¹®ÀÚ¿"
cf. ƯÁ¤ ³»¿ëÀÌ ÀÖ´Â ÆÄÀÏ Ã£±â [¸ðµç ÆÄÀÏ¿¡ ´ëÇؼ °Ë»ö]
grep -rlF "ãÀ»³»¿ë" *
|
|
Page Loading [ 0.02 Sec ]
SQL Time [ 0 Sec ]
|
|
|