Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux shell Ö® find

תÌùµØÖ·:  Cy158358.cublog.cn
#!/bin/sh
check_patch()
{
 test -d $1
 return
}
#¼ì²é·¾¶ÊÇ·ñ´æÔÚ
check_patch $2
if [ $? -ne 0 ]
then
 echo "no such path $2"
 exit 1
fi
if [ "$1" = "name" ]
then
 #²éÕÒtxtÎļþ
 echo "--------------------------*.txt"
 find $2 -name "*.txt"
 
 #²éÕÒÒÔ´óд×Öĸ¿ªÍ·µÄÎļþ
 echo "--------------------------[A-Z]*   [A-Z]*.*"
 find $2 -name "[A-Z]*"
 #²éÕÒÒÔÁ½¸öСд×Öĸ¿ªÍ·¡¢ºó½Ó1¸öÊý×ÖÔÙ½ÓÒ»¸ö´óд×ÖĸµÄÎļþ
 echo "--------------------------[a-z][a-z][0-9][A-Z]*"
 find $2 -name "[a-z][a-z][0-9][A-Z]*"
elif [ "$1" = "perm" ]
then
 #²éÕҿɶÁ¡¢¿Éд¡¢¿ÉÖ´ÐеÄtxtÎļþ
 find $2 -name "*.txt" -perm 777
elif [ "$1" = "type" ]
then
 #²éÕÒËùÓÐĿ¼
 echo "-------------------all dir"
 find $2 -type d
 #²éÕÒ³ýĿ¼ÒÔÍâµÄËùÓÐÎļþ
 echo "-------------------all files"
 find $2 ! -type d
 #²éÕÒËùÓзûºÅÁ´½ÓÎļþ
 echo "-------------------all link"
 ln -s $2/b $2/ln-b
 find $2 -type l
elif [ "$1" = "size" ]
then
 #²éÕÒËùÓÐ0×Ö½ÚÎļþ
 echo "-------------------size = 0"
 find $2 -name "*.*" -size 0c
 #²éÕÒËùÓÐСÓÚ1k×Ö½ÚµÄÎļþ
 echo "-------------------size < 1k"
 find $2 -name "*.*" -size -1024c
 #²éÕÒËùÓдóÓÚ2k×Ö½ÚµÄÎļþ
 echo "-------------------size > 2k"
 find $2 -name "*.*" -size +2048c
 #²éÕÒËùÓдóÓÚ2k×Ö½ÚµÄÎļþ(°üÀ¨Ä¿Â¼)
 echo "-------------------size > 2k"
 find $2 -size +2048c
elif [ "$1" = "depth" ]
then
 #ÏÈÔÚ¸ùĿ¼ÖвéÕÒtest.c,È»ºó²Åµ½×ÓĿ¼ÖвéÕÒ
 echo "-------------------find test.c"
 f


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

[ת]Linux Ïß³ÌʵÏÖ»úÖÆ·ÖÎö

ÑîɳÖÞ (pubb@163.net)¹ú·À¿Æ¼¼´óѧ¼ÆËã»úѧԺ
2003 Äê 5 ÔÂ 19 ÈÕ
×Ô´Ó¶àÏ̱߳à³ÌµÄ¸ÅÄî³öÏÖÔÚ Linux ÖÐÒÔÀ´£¬Linux ¶àÏßÓ¦Óõķ¢Õ¹×ÜÊÇÓëÁ½¸öÎÊÌâÍѲ»¿ª¸Éϵ£º¼æÈÝÐÔ¡¢Ð§ÂÊ¡£±¾ÎÄ´ÓÏß³ÌÄ£ÐÍÈëÊÖ£¬Í¨¹ý·ÖÎöÄ¿Ç° Linux ƽ̨ÉÏ×îÁ÷ÐÐµÄ LinuxThreads Ï߳̿âµÄʵÏÖ¼°Æä²»×㣬ÃèÊöÁË Linux ÉçÇøÊÇÈçºÎ¿´´ýºÍ½â¾ö¼æÈÝÐÔºÍЧÂÊ ......

ÓÃlinuxµÄduÃüÁîÏÔʾÎļþ»òĿ¼´óС

ƽʱ¾­³£ÓÃlinuxµÄfreeÃüÁî²é¿´ÄÚ´æÐÅÏ¢£¬½ñÌìÒòΪmysqlϵͳͻȻËÀµôÁË£¬¶øÇÒÎÞ·¨Æô¶¯¡£¾ßÌåÏÖÏóÊÇÒ»Ö±ÏÔʾÕýÔÚÆô¶¯µÄ½ø¶È״̬£¬µ«Ê¼ÖÕÎÞ·¨Æô¶¯£¬Æ½Ê±Æô¶¯¼¸Ãë¾ÍÍê³ÉÁ˵ġ£ËùÒԿ϶¨ÓÐÎÊÌâ¡£ÓÚÊÇ×¼±¸²é¿´ÏÂÊDz»ÊÇÈÕÖ¾ÐÅÏ¢¶àÁË£¬Õ¼ÂúÁËÓ²Å̿ռ䡣ͻȻ·¢ÏÖÒ»¸öÎÊÌ⣬Ôõô²é¿´Ò»¸öÎļþºÍĿ¼µÄ¿Õ¼äÕ¼ÓÃÇé¿öÄØ£¬ÒÔÇ°¶¼ÓÃls -al à ......

linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ


linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ
cron ÊÇlinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔϵķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ£º  
ÒýÓÃ:  
/sbin/service crond start //Æô¶¯·þÎñ  
/sbin/service crond stop //¹Ø±Õ·þÎñ  
/sbin/service crond restart //ÖØÆô·þÎñ  
/sbin/service crond reload //Ö ......

linux Ó¦¼±ÏàÓ¦¹¤¾ß°üºÍlivecd

http://www.forensicswiki.org/wiki/Helix3
http://www.sleuthkit.org/index.php
»Ö¸´²½Öè:
root@srv01 [/home/recovery]# ./fls -a -r -p /dev/sdb3 > sdb3usrdirlist.txt
root@srv01 [/home/recovery]# grep -i "access_log" /home/recovery/sdb3usrdirlist.txt
r/r 2195490:    local/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ