Linuxϲ鿴ÎļþºÍÎļþ¼Ð´óСµÄdfºÍduÃüÁî
ת×Ô£ºhttp://www.yayu.org/look.php?id=162
µ±´ÅÅÌ´óС³¬¹ý±ê׼ʱ»áÓб¨¾¯Ìáʾ£¬ÕâʱÈç¹ûÕÆÎÕdfºÍduÃüÁîÊǷdz£Ã÷ÖǵÄÑ¡Ôñ¡£
df¿ÉÒԲ鿴һ¼¶Îļþ¼Ð´óС¡¢Ê¹ÓñÈÀý¡¢µµ°¸ÏµÍ³¼°Æä¹ÒÈëµã£¬µ«¶ÔÎļþÈ´ÎÞÄÜΪÁ¦¡£
du¿ÉÒԲ鿴Îļþ¼°Îļþ¼ÐµÄ´óС¡£
Á½ÕßÅäºÏʹÓ㬷dz£ÓÐЧ¡£±ÈÈçÓÃdf²é¿´ÄĸöÒ»¼¶Ä¿Â¼¹ý´ó£¬È»ºóÓÃdf²é¿´Îļþ¼Ð»òÎļþµÄ´óС£¬Èç´Ë±ã¿ÉѸËÙÈ·¶¨Ö¢½á¡£
ÏÂÃæ·Ö±ð¼òÒª½éÉÜ
dfÃüÁî¿ÉÒÔÏÔʾĿǰËùÓÐÎļþϵͳµÄ¿ÉÓÿռ估ʹÓÃÇéÐÎ
£¬Çë¿´ÏÂÁÐÕâ¸öÀý×Ó£º
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
[yayug@yayu ~]$ df -h
Filesystem Size Used Avail Use%
Mounted on
/dev/sda1 3.9G 300M 3.4G 8% /
/dev/sda7
100G 188M 95G 1% /data0
/dev/sdb1 133G 80G 47G
64% /data1
/dev/sda6 7.8G 218M 7.2G 3% /var
/dev/sda5
7.8G 166M 7.2G 3% /tmp
/dev/sda3 9.7G 2.5G 6.8G
27% /usr
tmpfs 2.0G 0 2.0G 0% /dev/shm
²ÎÊý -h ±íʾʹÓá¸Human-readable¡¹µÄÊä³ö£¬Ò²¾ÍÊÇÔÚµµ°¸ÏµÍ³´óСʹÓà GB¡¢MB µÈÒ׶ÁµÄ¸ñʽ¡£
ÉÏÃæµÄÃüÁîÊä³öµÄµÚÒ»¸ö×ֶΣ¨Filesystem£©¼°×îºóÒ»¸ö×ֶΣ¨Mounted on£©·Ö±ðÊǵµ°¸ÏµÍ³¼°Æä¹ÒÈëµã¡£ÎÒÃÇ¿ÉÒÔ¿´µ½
/dev/sda1 Õâ¸ö·Ö¸îÇø±»¹ÒÔÚ¸ùĿ¼Ï¡£
½ÓÏÂÀ´µÄËĸö×ֶΠSize¡¢Used¡¢Avail¡¢¼° Use% ·Ö±ðÊǸ÷ָîÇ
Ïà¹ØÎĵµ£º
linux file lock
linuxµÄÎļþËø·ÖΪÁ½ÖÖ£º
Ò»ÖÖÊÇadvasory lock£¬Ö»Äܱ£Ö¤½ø³ÌÄÚ¶Ôͬһ¸öÎļþËøµÄ»¥³âÓÐЧ£¬µ«ÊǶà¸ö½ø³Ì¿ÉÒÔͬʱ¶ÔÒ»¸öÎļþ¼Ó»¥³âµÄËø£¬ËùÒÔÕâÖÖËøÊǼÓÔÚfile ½á¹¹ÉÏ;Ò»ÖÖÊÇmandatory lock£¬ÕâÖÖËø¿ÉÒÔ±£Ö¤¶à¸ö½ø³ÌÎÞ·¨¶Ôͬһ¸öÎļþ¶¼¼ÓÉÏ»¥³âËø£¬ËùÒÔÕâÖÖËøÊǼÓÔÚinode ½á¹¹Éϵġ£
µ±¼Ómandatroy lockÊ ......
GPIO£¨General Purpose Input/OutputµÄËõд£©¾ÍÊÇоƬµÄÒý½Å£¬Òý½ÅÊǿɱà³ÌµÄ¿É¶ÔÒý½ÅµÄ¹¤×÷ģʽ½øÐÐÉèÖãºÊäÈëģʽ(¼ì²âÊäÈëÐźÅ)£¬Êä³öģʽ(Êä³ö0»ò1)£¬¸ß×è״̬(³£ÓÃÓÚADת»»)£¬»¹ÓнûÖ¹»òÔÊÐíÉÏÄÚ²¿ÏÂÀµç×è(ÉÏÀ£º¹Ü½Åͨ¹ýµç×è½Ó¸ßµçƽ£¬ÏÂÀ£º¹Ü½Åͨ¹ýµç×è½ÓµØ£¬Ò²¿ÉÒÔÍⲿ½ÓÉÏÀ»òÏÂÀµç×è)£¬»¹ÓйܽŸ´Óõȹ¦ÄÜ£¬ ......
´°Ì嶥¶Ë
Ë÷Òý£º
1.fork¡¢execºÍexit¶ÔIPC¶ÔÏóµÄÓ°Ïì
2.fcntl¼Ç¼Ëø
3.¹ÜµÀºÍFIFOµÄÊôÐÔ
4.¹ÜµÀºÍFIFOµÄÏÞÖÆ
5.pipeº¯Êý
6.popenºÍpclose
7.mkfifoº¯Êý
8.System V IPC¹²ÐÔÃèÊö
9.msqid_ds½á¹¹
10.msggetº¯Êý
11.msgsndº¯Êý
12.msgrcvº¯Êý
13.msgctlº¯Êý
14.ÔÚSystem VÏûÏ¢¶ÓÁÐÉÏʹÓÃselectºÍpoll
15.sem ......
Ò»¡¢Àí½âLinuxµÄµ¥Óû§¶àÈÎÎñ£¬¶àÓû§¶àÈÎÎñ¸ÅÄ
Linux ÊÇÒ»¸ö¶àÓû§¡¢¶àÈÎÎñµÄ²Ù×÷ϵͳ£»ÎÒÃÇÓ¦¸ÃÁ˽ⵥÓû§¶àÈÎÎñºÍ¶àÓû§¶àÈÎÎñµÄ¸ÅÄ
1¡¢Linux µÄµ¥Óû§¶àÈÎÎñ£»
µ¥Óû§¶àÈÎÎñ£»±ÈÈçÎÒÃÇÒÔbeinan µÇ¼ϵͳ£¬½øÈëϵͳºó£¬ÎÒÒª´ò¿ªgedit À´Ð´Îĵµ£¬µ«ÔÚдÎĵµµÄ¹ý³ÌÖУ¬ÎҸоõÉÙµãÒôÀÖ£¬ËùÒÔÓÖ´ò¿ªxmms À´µãÒôÀÖ£» ......
½«ÁªÍø·½Ê½ÉèÖÃΪNAT
µÚÒ»²½£º
cdµ½/etc/sysconfig/network-scriptsϵµÄifcfg-eth0
µÚ¶þ²½£º
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
#BOOTPROTO=static
BOOTPROTO=none
BROADCAST=192.168.174.255
HWADDR=00:0C:29:F2:BB:A9
IPADDR=192.168.174.11
......