linux ͳ¼Æµ±Ç°Ä¿Â¼ÏÂÎļþÊý
²é¿´µ±Ç°Ä¿Â¼ÏÂÎļþµÄ¸öÊý
ls -l | grep "^-" | wc -l
²é¿´µ±Ç°Ä¿Â¼ÏÂÎļþµÄ¸öÊý£¬°üÀ¨×ÓĿ¼ÀïµÄ¡£
ls -lR| grep "^-" | wc -l
²é¿´Ä³Ä¿Â¼ÏÂÎļþ¼Ð£¨Ä¿Â¼£©µÄ¸öÊý£¬°üÀ¨×ÓĿ¼ÀïµÄ¡£
ls -lR| grep "^d" | wc -l
¼òҪ˵Ã÷£º
ls -l
³¤ÁбíÊä³ö¸ÃĿ¼ÏÂÎļþÐÅÏ¢(×¢ÒâÕâÀïµÄÎļþ£¬²»Í¬ÓÚÒ»°ãµÄÎļþ£¬¿ÉÄÜÊÇĿ¼¡¢Á´½Ó¡¢É豸ÎļþµÈ)
grep "^-"
ÕâÀォ³¤ÁбíÊä³öÐÅÏ¢¹ýÂËÒ»²¿·Ö£¬Ö»±£ÁôÒ»°ãÎļþ£¬Èç¹ûÖ»±£ÁôĿ¼¾ÍÊÇ ^d
wc -l
ͳ¼ÆÊä³öÐÅÏ¢µÄÐÐÊý£¬ÒòΪÒѾ¹ýÂ˵Ãֻʣһ
ͳ¼ÆÒ»¸öĿ¼ÖеÄĿ¼¸öÊý
ls -l | awk '/^d/' | wc -l
ͳ¼ÆÒ»¸öĿ¼ÖеÄÎļþ¸öÊý
ls -l | awk '/^-/' | wc -l
ͳ¼ÆÒ»¸öĿ¼ÖеÄÈ«²¿ÎļþÊý
find ./ -type f -print | wc -l
ͳ¼ÆÒ»¸öĿ¼ÖеÄÈ«²¿×ÓĿ¼Êý
find ./ -type d -print | wc -l
find -name 'prm20100220*' -d print | wc -l
Ïà¹ØÎĵµ£º
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......
ÎĵµÑ¡Ïî
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
Ö£ÑåÐË (mlinux@163.com), ¹ú·À¿Æ´ó¹¥¶Á²©Ê¿Ñ§Î»
2003 Äê 5 ÔÂ 01 ÈÕ
¹²ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ½½ø³ÌB¶Ô¹² ......
ÓùßÁËWindowsƽ̨¿ª·¢¹¤¾ßµÄÈË£¬×ªµ½Linuxƽ̨ÉϿ϶¨ÓÐÒ»¸öÊÊÓ¦µÄ¹ý³Ì¡£
WindowsÏÂÃæÖ±½ÓʹÓÃVS20....µÈµÈ£¬ÅäºÏMSDNÎĵµ£¬¿ª·¢²éѯÇáËÉ×ÔÈç¡£
¶øLinuxƽ̨£¬ÓÉÓÚÖÖÀà·±¶àûÓÐÏñMSDNÕâÑùÈ«ÃæµÄ¼¼ÊõÎĵµ£¬¶ÔÓÚ¼¼Êõ×ÊÁϵIJéѯ¾ÍÒªÒÀ¿¿
[root@localhost]#MAN [º¯ÊýÃû]
µÄ·½Ê½À´²éѯ¡£´ó²¿·ÖµÄC++º¯Êýʱ¿ÉÒÔ²éѯµ½µÃ£¬µ«ÊÇ ......
Ò». ʹÓà Network Time Protocol (NTP) ·þÎñÆ÷
1.1 ·þÎñÆ÷¿ÉÁ´½ÓÍâÍøʱ
# crontab -e
¼ÓÈëÒ»ÐУº
*/1 * * * * ntpdate 210.72.145.44   ......
°æ±¾10.2
ÔÚ9iÏÂdbstart´æÔÚÒ»bug£ºdbstartÆô¶¯Ê±ÔÚ$ORACLE_HOME/dbsÏÂÑ°ÕÒinitSID.ora£¬ÊÂʵÉÏÔÚ¸ÃĿ¼Ï²»´æÔÚÕâ¸öpfile£¬ÔÚ9i ÒѾʹÓÃÁËspfile£¬ËùÒÔÒªÏëÕý³£Í¨¹ýdbstartÆô¶¯db£¬ÐèÒªÔÚĿ¼$ORACLE_HOME/dbsÏ´´½¨Ò»¸öinitSID.ORAÎļþ£¬10gÖÐÎÒ·¢ÏÖÐÞÕýÁËÕâÒ»ÎÊÌâ¡£²»¹ý10gÖÐdbstartÔÚ×Ô¶¯Æô¶¯listenerʱ´æÔÚÒ»ÎÊÌ⣠......