B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-27 Friday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  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 "ãÀ»³»¿ë" *
Regist Addr [ 203.142.173.32 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®