linux Ó²Á´½ÓÓëÈíÁ¬½ÓµÄÇø±ð
Ê×ÏÈÎÒÃÇÐèÒªÁ˽âlinux
ÏÂÓ²Á´½ÓÒÔ¼°ÈíÁ¬½ÓµÄ»ù±¾¸ÅÄî.
Ó²Á´½Ó£ºÐ½¨µÄÎļþÊÇÒѾ´æÔÚµÄÎļþµÄÒ»¸ö±ðÃû£¬µ±ÔÎļþɾ³ýʱ£¬Ð½¨µÄÎļþÈÔÈ»¿ÉÒÔʹÓÃ.
ÈíÁ´½Ó£ºÒ²³ÆΪ·ûºÅÁ´½Ó£¬Ð½¨µÄÎļþÒÔ“
·¾¶”
µÄÐÎʽÀ´±íʾÁíÒ»¸öÎļþ£¬ºÍWindows
µÄ¿ì½Ý·½Ê½Ê®·ÖÏàËÆ£¬Ð½¨µÄÈíÁ´½Ó¿ÉÒÔÖ¸Ïò²»´æÔÚµÄÎļþ.
ÏÂÃæÏêϸ½éÉÜÒ»ÏÂÓ²Á´½ÓºÍÈíÁ¬½ÓÖ®¼äµÄÇø±ð.
1.
Ó²Á´½ÓºÍÔÀ´µÄÎļþûÓÐʲôÇø±ð£¬¶øÇÒ¹²ÏíÒ»¸ö
inode
ºÅ£¨ÎļþÔÚÎļþϵͳÉϵÄΨһ±êʶ£©£»¶øÈíÁ´½Ó²»¹²Ïí inode
£¬Ò²¿ÉÒÔ˵ÊǸöÌØÊâµÄ inode
£¬ËùÒÔºÍÔÀ´µÄ inode
ÓÐÇø±ð¡£
2.
ÈôÔÎļþɾ³ýÁË£¬Ôò¸ÃÈíÁ¬½ÓÔò²»¿ÉÒÔ·ÃÎÊ£¬¶øÓ²Á¬½ÓÔòÊÇ¿ÉÒԵġ£
3.
ÓÉÓÚ·ûºÅÁ´½ÓµÄÌØÐÔ£¬µ¼ÖÂÆä¿ÉÒÔ¿çÔ½´ÅÅÌ·ÖÇø£¬µ«Ó²Á´½Ó²»¾ß±¸Õâ¸öÌØÐÔ.
ÁíÍâÔÚתÔØÒ»ÏÂÍøÉϵĽéÉÜ.
Ó²Á´½Ó(hard
link)
UNIX
ÎļþϵͳÌṩÁËÒ»ÖÖ½«²»Í¬ÎļþÁ´½ÓÖÁͬһ¸öÎļþµÄ»úÖÆ£¬ÎÒÃdzÆÕâÖÖ»úÖÆΪÁ´½Ó¡£Ëü¿ÉÒÔʹµÃµ¥¸ö³ÌÐò¶ÔͬһÎļþʹÓò»Í¬µÄÃû×Ö¡£ÕâÑùµÄºÃ´¦ÊÇÎļþϵ
ͳֻ´æÔÚÒ»¸öÎļþµÄ¸±±¾¡£ÏµÍ³¼òµ¥µØͨ¹ýÔÚĿ¼Öн¨Á¢Ò»¸öеĵǼÇÏîÀ´ÊµÏÖÕâÖÖÁ¬½Ó¡£¸ÃµÇ¼ÇÏî¾ßÓÐÒ»¸öеÄÎļþÃûºÍÒªÁ¬½ÓÎļþµÄinode
ºÅ(inode
ÓëÔÎļþÏàͬ)
¡£²»ÂÛÒ»¸öÎļþÓжàÉÙÓ²Á´½Ó£¬ÔÚ´ÅÅÌÉÏÖ»ÓÐÒ»¸öÃèÊöËüµÄinode
£¬Ö»Òª¸ÃÎļþµÄÁ´½ÓÊý²»Îª0
£¬¸ÃÎļþ¾Í±£³Ö´æÔÚ¡£Ó²Á´½Ó²»ÄܶÔĿ¼½¨Á¢Ó²
Á´½Ó£¡
Ó²Á¬½ÓÊÇÖ±½Ó½¨Á¢ÔÚ½Úµã±íÉϵģ¨inode
£©£¬½¨Á¢Ó²Á¬½ÓÖ¸ÏòÒ»¸öÎļþµÄʱºò£¬»á¸üнڵã±íÉÏÃæµÄ¼ÆÊýÖµ¡£¾Ù¸öÀý×Ó£¬Ò»¸öÎļþ±»Á¬½ÓÁËÁ½´Î£¨Ó²Á¬½Ó£©£¬Õâ ¸ö ÎļþµÄ¼ÆÊýÖµÊÇ3
£¬¶øÎÞÂÛͨ¹ý3
¸öÎļþÃûÖеÄÈκÎÒ»¸ö·ÃÎÊ£¬Ð§¹û¶¼ÊÇÍêÈ«Ò»ÑùµÄ£¬µ«ÊÇÈç¹ûɾ³ýÆäÖÐÈÎÒâÒ»¸ö£¬¶¼Ö»ÊǰѼÆÊýÖµ¼õ1
£¬²»»áɾ³ýʵ¼ÊµÄÄÚÈݵģ¬ £¨ÈκδæÔÚµÄÎļþ±¾Éí¾ÍËãÊÇÒ»¸öÓ²Á¬½Ó£©Ö»ÓмÆÊýÖµ±ä³É0
Ò²¾ÍÊÇûÓÐÈκÎÓ²Á¬½ÓÖ¸ÏòµÄʱºò²Å»áÕæʵµÄɾ³ýÄÚÈÝ¡£
ÈíÁ´½Ó(symbolic
link)
ÎÒÃÇ°Ñ·ûºÅÁ´½Ó³ÆΪÈíÁ´½Ó£¬ËüÊÇÖ¸ÏòÁíÒ»¸öÎļþµÄÌØÊâÎļþ£¬ÕâÖÖÎļþµÄÊý¾Ý²¿·Ö½ö°üº¬ËüËùÒªÁ´½ÓÎļþµÄ·¾¶Ãû¡£ÈíÁ´½ÓÊÇΪÁË¿Ë·þÓ²Á´½ÓµÄ²»×ã¶øÒýÈëµÄ£¬Èí
Á´½Ó²»Ö±½ÓʹÓÃinode
ºÅ×÷ΪÎļþÖ¸Õ룬¶øÊÇʹÓÃÎļþ·¾¶Ãû×÷ΪָÕ루ÈíÁ´½Ó£ºÎļþÃû +
Êý¾Ý²¿·Ö-->
Ä¿±êÎļþµÄ·¾¶Ãû£©¡£Èí¼þÓÐ×Ô¼ºµÄinode
£¬²¢ÔÚ´ÅÅÌÉÏÓÐһСƬ¿Õ¼ä´æ·Å·¾¶Ãû¡£Òò´Ë£¬ÈíÁ´½ÓÄܹ»¿çÎļþϵͳ£¬Ò²¿ÉÒÔºÍĿ¼Á´½Ó£¡ Æä¶þ£¬ÈíÁ´½Ó¿ÉÒÔ¶ÔÒ»¸ö²»´æÔÚµÄÎļþÃû
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
&&
ÃüÁî1 && ÃüÁî2 Èç¹ûÕâ¸öÃüÁî1Ö´Ðгɹ¦& &ÄÇôִÐÐÕâ¸öÃüÁîÃü2
mv myfile myfile2 && echo "if you are seeing this then mv was success!"
||
Èç¹û| |×ó±ßµÄÃüÁÃüÁî1£©Î´Ö´Ðгɹ¦£¬ÄÇô¾ÍÖ´ÐÐ| |ÓұߵÄÃüÁî(ÃüÁî2£©
mv myfile myfile2 & ......
Ò»¡¢Ê×ÏÈҪ׼±¸±ØÐëµÄÈí¼þ£¬ÎÒÑ¡Óõİ汾ÈçÏ£º
apr-1.4.2£¬ÏÂÔصØÖ·£ºhttp://archive.apache.org/dist/apr/
apr-util-1.3.9£¬ÏÂÔصØÖ·£ºhttp://archive.apache.org/dist/apr/
apache£¨httpd-2.2.9£©£¬ÏÂÔصØÖ·£ºhttp://archive.apache.org/dist/httpd/
SQLite-2.6.23.1£¬ÏÂÔصØÖ·£ºhttp://www.sqlite.org/
neon- ......
ʹÓÃDDD+GDB¿ª·¢ARM Linux³ÌÐò
½ñÌìÓÖÈ¡µÃÁËһЩ½øÕ¹£¬¸Ï¿ìдÏÂÀ´ÒÔÃâ×Ô¼ºÍü¼Ç¡£
×Ô´ÓLinuxÔÚÎҵİå×ÓÉÏÅÜÆðÀ´Ö®ºó£¬ÎÒÒ»Ö±ÔÚÏëÒ»¸öÎÊÌ⣬Ôõôµ÷ÊÔ½«À´Ð´µÄ³ÌÐò¡£ÆäʵÎÒÔÚLinux¿ª·¢·½ÃæÕæµÃºÜÍâÐУ¬µ½Á˽ñÌì²ÅÖªµÀGDBµ½µ×ÊÇ ¸ÉʲôÓõģ¬ºÇºÇ¡£ÎÒÏàÐźܶàÈË´ÓBootloaderµ÷ÊÔ¿ªÊ¼Ò»Ö±¶¼Ê¹ÓÃLED°¡£¬printfÕâÑùµÄ·½·¨À´µ÷ÊÔ¡ ......
LinuxÏÂÅäÖþ²Ì¬IPµØÖ·£¬ÉèÖÃDNSºÍÖ÷»úÃû
ÅäÖÃÎļþλÓÚ£º
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.3
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ʹ
IPµØÖ·ÉúЧ£º
/sbin/ifdown eth0
/sbin/ifup eth0
Ö÷»úÃûÅäÖÃ /etc/sysconfig/network
NETWO ......