linux ÏÂwhich¡¢whereis¡¢locate¡¢findÇø±ð
µ±ÎÒÃÇÐèҪij¸öÎļþ»òĿ¼ʱ£¬¶øÓÖ²»ÖªµÀ¸ÃÎļþ·ÅÔÚʲôµØ·½£¬Ôõô°ì£¿
ÔÚwindowsÏÂÃ棬¿ÉÒÔͨ¹ý“ËÑË÷”¹¦ÄܽøÐвéÕÒ£¬¶øÔÚlinuxÏ£¬Í¬ÑùÓÐÏàͬµÄ¹¦ÄÜ£º
which ²é¿´¿ÉÖ´ÐÐÎļþµÄλÖÃ
whereis ²é¿´ÎļþµÄλÖÃ
locate ÅäºÏÊý¾Ý¿â²é¿´ÎļþλÖÃ
find ʵ¼ÊËÑÑ°Ó²Å̲éѯÎļþÃû³Æ
1¡¢which
Óï·¨£º
[root@redhat ~]# which ¿ÉÖ´ÐÐÎļþÃû³Æ
ÀýÈ磺
[root@redhat ~]# which passwd
/usr/bin/passwd
whichÊÇͨ¹ýPATH»·¾³±äÁ¿µ½¸Ã·¾¶ÄÚ²éÕÒ¿ÉÖ´ÐÐÎļþ£¬ËùÒÔ»ù±¾µÄ¹¦ÄÜÊÇÑ°ÕÒ¿ÉÖ´ÐÐÎļþ
2¡¢whereis
Óï·¨£º
[root@redhat ~]# whereis [-bmsu] Îļþ»òÕßĿ¼Ãû³Æ
²ÎÊý˵Ã÷£º
-b £º Ö»ÕÒ¶þ½øÖÆÎļþ
-m : Ö»ÕÒÔÚ˵Ã÷Îļþmanual·¾¶ÏµÄÎļþ
-s £º Ö»ÕÒsourceÔ´Îļþ
-u £º ûÓÐ˵Ã÷ÎĵµµÄÎļþ
ÀýÈ磺
[root@redhat ~]# whereis passwd
passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man1/passwd.1.gz /usr/share/man/man5/passwd.5.gz
½«ºÍpasswdÎļþÏà¹ØµÄÎļþ¶¼²éÕÒ³öÀ´
[root@redhat ~]# whereis -b passwd
passwd: /usr/bin/passwd /etc/passwd
Ö»½«¶þ½øÖÆÎļþ²éÕÒ³öÀ´
ºÍfindÏà±È£¬whereis²éÕÒµÄËٶȷdz£¿ì£¬ÕâÊÇÒòΪlinuxϵͳ»á½«ÏµÍ³ÄÚµÄËùÓÐÎļþ¶¼¼Ç¼ÔÚÒ»¸öÊý¾Ý¿âÎļþÖУ¬µ±Ê¹ÓÃwhereisºÍÏÂÃæ¼´½«½éÉܵÄlocateʱ£¬»á´ÓÊý¾Ý¿âÖвéÕÒÊý¾Ý£¬¶ø²»ÊÇÏñfindÃüÁîÄÇÑù£¬Í¨¹ý±éÀúÓ²ÅÌÀ´²éÕÒ£¬Ð§ÂÊ×ÔÈ»»áºÜ¸ß¡£
µ«ÊǸÃÊý¾Ý¿âÎļþ²¢²»ÊÇʵʱ¸üУ¬Ä¬ÈÏÇé¿öÏÂʱһÐÇÆÚ¸üÐÂÒ»´Î£¬Òò´Ë£¬ÎÒÃÇÔÚÓÃwhereisºÍlocate²éÕÒÎļþʱ£¬ÓÐʱ»áÕÒµ½ÒѾ±»É¾³ýµÄÊý¾Ý£¬»òÕ߸ոս¨Á¢Îļþ£¬È´ÎÞ·¨²éÕÒµ½£¬ÔÒò¾ÍÊÇÒòΪÊý¾Ý¿âÎļþûÓб»¸üС£
3¡¢locate
Óï·¨£º
[root@redhat ~]# locate Îļþ»òÕßĿ¼Ãû³Æ
ÀýÈ磺
[root@redhat ~]# locate passwd
/home/weblogic/bea/user_projects/domains/zhanggongzhe112/myserver/stage/_appsdir_DB_war/DB.war/jsp/as/user/passwd.jsp
/home/weblogic/bea/user_projects/domains/zhanggongzhe112/myserver/stage/_appsdir_admin_war/admin.war/jsp/platform/passwd.jsp
/lib/security/pam_unix_passwd.so
/lib/security/pam_passwdqc.so
/usr/include/rpcsvc/yppasswd.x
/usr/include/rpcsvc
Ïà¹ØÎĵµ£º
1) ÓÀ¾ÃÐÔÉúЧ£¬ÖØÆôºó²»»á¸´Ô
¿ªÆô£º chkconfig iptables on
¹Ø±Õ£º chkconfig iptables off
2) ¼´Ê±ÉúЧ£¬ÖØÆôºó¸´Ô
¿ªÆô£º service iptables start
¹Ø±Õ£º service iptables stop
ÐèҪ˵Ã÷µÄÊǶÔÓÚLinuxϵÄÆäËü·þÎñ¶¼¿ÉÒÔÓÃÒÔÉÏÃüÁîÖ´ÐпªÆôºÍ¹Ø±Õ²Ù×÷¡£
ÔÚ¿ªÆôÁË·À»ðǽʱ£¬×öÈçÏÂÉèÖ㬿ªÆôÏà¹Ø¶Ë¿Ú£¬ ......
¹¹½¨»ù±¾µÄLinux C ±à³Ì»·¾³ ÊÕ²Ø
±¾ÎÄ»ùÓÚdebian-40r0(ÄÚºË2.6.18)½éÉÜÒ»ÏÂÈçºÎÔÚÒ»¸ö±ê׼ϵͳÖй¹½¨Linux CµÄ»ù±¾±à³Ì¿ª·¢»·¾³¡£
Ò»¸öÍêÕûµÄ¿ª·¢»·¾³Ö÷Òª°üÀ¨Ëĸö²¿·Ö£º±ê×¼C¿â¡¢Í·Îļþ¡¢¹¤¾ßÁ´¡¢±à¼Æ÷¡¢°ïÖúÎĵµ£¬ÏÂÃæÒÀ´Î½éÉÜ¡£
±ê×¼C¿âglibc
glibcÊÇgnu·¢²¼µÄlibc¿â£¬¼´cÔËÐп⡣glibcÊÇlinuxϵͳÖÐÄÚºËÖ ......
ʲôÊÇÀýÐÐÐÔÃüÁ
Linux ϵͳµÄÀýÐÐÐÔÃüÁîÓÐÄÄЩ£¿
½öÖ´ÐÐÒ»´ÎµÄ¹¤×÷Åų̣º at
Ñ»·Ö´ÐеÄÀýÐÐÐÔÃüÁ
crontab
ϵͳµÄ
crontab É趨£º /etc/crontab
°²È«µÄ·À»¤£º /var/log/cron ¼Ç¼Îļþ
±¾ÕÂÏ°ÌâÁ·Ï°
ʲôÊÇÀýÐÐÐÔÃüÁ
ÿ¸öÈË»ò¶à»òÉÙ¶¼ÓÐһЩԼ»á»òÕßÊǹ¤×÷£¬ÓеŤ×÷ÊÇÀýÐÐÐԵģ¬ÀýÈçÿÄêÒ»´Îµ ......
ÎÊÌ⣺Á½Ì¨DVRͬʱÁ¬½Óͬһ̨2·µÄDVS£¬ÆäÖÐһ̨DVRÕý³£Á¬½ÓDVSµÄÁ½Â·Êä³ö£¬Ô¤ÀÀÒ²Õý³£¡£
¶øÁíһ̨DVRÖ»ÄÜÁ¬ÉÏDVSµÄ1·Êä³ö£¬Áíһ·ÔõôҲÁ¬²»ÉÏ¡£
¸ú×Ù·¢ÏÖ£¬D ......
ÔÎÄ£ºhttp://www.webjx.com/htmldata/2007-10-05/1191585088.html
°´³£Àí²»¿ÉÒÔÍü¼ÇrootÓû§ÃÜÂëµÄ£¬µ«ÊÇÈç¹ûÕæµÄÍü¼ÇÁË£¬Ò²²»ÓóÕâ¸öÊÇÓа취½â¾öµÄ¡£
15Ãë»Ö¸´rootÃÜÂ룬µ±È»ÊÇûËãÉÏϵͳµÄÆô¶¯Ê±¼äÁË¡£ºÇºÇ¡£
ÏÂÃæÊÇÎÒ¸øroot»Ö¸´ÃÜÂëµÄʵÑé¹ý³Ì.£¨ÓõÄÊÇRHEL4£©¡£
ͼ1
¿ª»úµÄʱºò°´e £¬£¨Èçͼ£¬¾ÍÔÚÕâ¸öʱºò° ......