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

linux ·Óɱíά»¤ (ת)


ת×Ôhttp://blog.chinaunix.net/u3/110321/showart.php?id=2159791
²é¿´ Linux Äں˷Óɱí
ʹÓÃÏÂÃæµÄ route ÃüÁî¿ÉÒԲ鿴 Linux Äں˷ÓÉ±í¡£
# route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
route ÃüÁîµÄÊä³öÏî˵Ã÷
Êä³öÏî ˵Ã÷
Destination
Ä¿±êÍø¶Î»òÕßÖ÷»ú
Gateway
Íø¹ØµØÖ·£¬”*” ±íʾĿ±êÊDZ¾Ö÷»úËùÊôµÄÍøÂ磬²»ÐèҪ·ÓÉ
Genmask
ÍøÂçÑÚÂë
Flags
±ê¼Ç¡£Ò»Ð©¿ÉÄܵıê¼ÇÈçÏ£º
 
U — ·ÓÉÊǻµÄ
 
H — Ä¿±êÊÇÒ»¸öÖ÷»ú
 
G — ·ÓÉÖ¸ÏòÍø¹Ø
 
R — »Ö¸´¶¯Ì¬Â·ÓɲúÉúµÄ±íÏî
 
D — ÓÉ·Óɵĺǫ́³ÌÐò¶¯Ì¬µØ°²×°
 
M — ÓÉ·Óɵĺǫ́³ÌÐòÐÞ¸Ä
 
! — ¾Ü¾ø·ÓÉ
Metric
·ÓɾàÀ룬µ½´ïÖ¸¶¨ÍøÂçËùÐèµÄÖÐתÊý£¨linux ÄÚºËÖÐûÓÐʹÓã©
Ref
·ÓÉÏîÒýÓôÎÊý£¨linux ÄÚºËÖÐûÓÐʹÓã©
Use
´Ë·ÓÉÏ·ÓÉÈí¼þ²éÕҵĴÎÊý
Iface
¸Ã·ÓɱíÏî¶ÔÓ¦µÄÊä³ö½Ó¿Ú
3 ÖÖ·ÓÉÀàÐÍ
Ö÷»ú·ÓÉ
Ö÷»ú·ÓÉÊÇ·ÓÉÑ¡Ôñ±íÖÐÖ¸Ïòµ¥¸öIPµØÖ·»òÖ÷»úÃûµÄ·ÓɼǼ¡£Ö÷»ú·ÓɵÄFlags×Ö¶ÎΪH¡£ÀýÈ磬ÔÚÏÂÃæµÄʾÀýÖУ¬±¾µØÖ÷»úͨ¹ýIPµØÖ·192.168.1.1µÄ·ÓÉÆ÷µ½´ïIPµØַΪ10.0.0.10µÄÖ÷»ú¡£
Destination Gateway Genmask Flags Metric Ref Use Iface
----------- ------- ------- ----- ------ --- --- -----
10.0.0.10 192.168.1.1 255.255.255.255 UH 0 0 0 eth0
ÍøÂç·ÓÉ
ÍøÂç·ÓÉÊÇ´ú±íÖ÷»ú¿ÉÒÔµ½´ïµÄÍøÂç¡£ÍøÂç·ÓɵÄFlags×Ö¶ÎΪN¡£ÀýÈ磬ÔÚÏÂÃæµÄʾÀýÖУ¬±¾µØÖ÷»ú½«·¢Ë͵½ÍøÂç192.19.12µÄÊý¾Ý°üת·¢µ½IPµØַΪ192.168.1.1µÄ·ÓÉÆ÷¡£
Destination Gateway Genmask Flags Metric Ref Use Iface
----------- ------- ------- ----- ----- --- --- -----
192.19.12 192.168.1.1 255.255.255.0 UN 0 0 0 eth0
ĬÈÏ·ÓÉ
µ±Ö÷»ú²»ÄÜÔÚ·Ó


Ïà¹ØÎĵµ£º

linuxÃüÁîÖ®grep


ÏàÐÅg r e pÊÇU N I XºÍL I N U XÖÐʹÓÃ×î¹ã·ºµÄÃüÁîÖ®Ò»¡£g r e p£¨È«¾ÖÕýÔò±í´ïʽ°æ±¾£©ÔÊÐí¶ÔÎı¾Îļþ½øÐÐģʽ²éÕÒ¡£Èç¹ûÕÒµ½Æ¥Åäģʽ£¬ g r e p´òÓ¡°üº¬Ä£Ê½µÄËùÓÐÐС£g r e pÖ§³Ö»ù±¾ÕýÔò±í´ïʽ£¬Ò²Ö§³ÖÆäÀ©Õ¹¼¯¡£g r e pÓÐÈýÖÖ±äÐΣ¬¼´£º
G r e p£º ±ê×¼g r e pÃüÁ±¾Õ´󲿷Öƪ·ù¼¯ÖÐÌÖÂ۴˸ñʽ¡£
E g r e p£º ......

linuxÃüÁîÖ®awk


Table of Contents
1. awk¼ò½é
2. awkÃüÁî¸ñʽºÍÑ¡Ïî
2.1. awkµÄÓï·¨ÓÐÁ½ÖÖÐÎʽ
2.2. ÃüÁîÑ¡Ïî
3. ģʽºÍ²Ù×÷
3.1. ģʽ
3.2. ²Ù×÷
4. awkµÄ»·¾³±äÁ¿
5. awkÔËËã·û
6. ¼Ç¼ºÍÓò
6.1. ¼Ç¼
6.2. Óò
6.3. Óò·Ö¸ô·û
7. gawkרÓÃÕýÔò±í´ïʽԪ×Ö·û
8. POSIX×Ö·û¼¯
9. Æ¥Åä²Ù×÷·û(~)
10. ±È½Ï±í´ïʽ
11. ·¶Î§ ......

linuxÖÕ¶ËÉ豸uartÇý¶¯·ÖÎö

ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u3/94284/showart_1982227.html
Ò»:Ç°ÑÔ
½Ó×ÅÇ°ÃæµÄÖն˿ØÖÆ̨·ÖÎö,½ÓÏÂÀ´·ÖÎöserialµÄÇý¶¯.ÔÚlinuxÖÐ,serialÒ²¶ÔÓ¦×ÅÖÕ¶Ë,ͨ³£±»³ÆΪ´®¿ÚÖÕ¶Ë.ÔÚshellÉÏ,ÎÒÃÇ¿´µ½µÄ/dev/ttyS*¾ÍÊÇ´®¿ÚÖÕ¶ËËù¶ÔÓ¦µÄÉ豸½Úµã.
ÔÚ·ÖÎö¾ßÌåµÄserialÇý¶¯Ö®Ç°.ÓбØÒªÏÈ·ÖÎöuartÇý¶¯¼Ü¹¹.uartÊÇUniversal ......

¸ß¼¶Linux³ÌÐòÉè¼ÆµÚÈýÕ£º½ø³Ì

ÿ¸ö½ø³Ì¶¼ÓÐÒ»¸öΨһµÄ½ø³ÌºÅ¡£ ÿ¸ö½ø³Ì¶¼ÓÐÒ»¸ö¸¸½ø³Ì¡£ ϵͳÖеĽø³ÌÒÔÊ÷µÄÐÎʽ×éÖ¯£¬init½ø³Ì(½ø³ÌºÅΪ1)×÷Ϊ¸ù¡£ ½ø³Ì0Êǵ÷¶È½ø³Ì£¬Ã»ÓгÌÐòÓëÖ®¶ÔÓ¦£¬ÊÇÄں˵ÄÒ»²¿·Ö¡£ ½ø³Ì1ÊÇinit½ø³Ì£¬ÊÇÔÚϵͳÆô¶¯µÄ½×¶ÎÓÉÄÚºËÆô¶¯µÄ£¬¶ÔÓ¦/sbin/ini ......

ºêÄÚºËÓë΢Äںˣ¬LinuxÄÚºËÓëUnixÄÚºË

 
²Ù×÷ϵͳÄں˿ÉÄÜÊÇ΢Äںˣ¬Ò²¿ÉÄÜÊǵ¥Äںˣ¨ºóÕßÓÐʱ³Æ֮ΪºêÄÚºËMacrokernel£©¡£°´ÕÕÀàËÆ·â×°µÄÐÎʽ£¬ÕâЩÊõÓﶨÒåÈçÏ£º
 
 
µ¥ÄںˣºÒ²³ÆΪºêÄںˡ£½«Äں˴ÓÕûÌåÉÏ×÷Ϊһ¸ö´ó¹ý³ÌʵÏÖ£¬²¢Í¬Ê±ÔËÐÐÔÚÒ»¸öµ¥¶ÀµÄµØÖ·¿Õ¼ä¡£ËùÓеÄÄں˷þÎñ¶¼ÔÚÒ»¸öµØÖ·¿Õ¼äÔËÐУ¬Ï໥֮¼äÖ±½Óµ÷Óú¯Êý£¬¼òµ¥¸ßЧ¡£Î¢Ä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ