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

Linux manÃüÁîµÄʹÓ÷½·¨

man¾ÍÊÇmanualµÄËõд£¬ÓÃÀ´²é¿´ÏµÍ³ÖÐ×Ô´øµÄ¸÷Öֲο¼Êֲᡣ
Ò»¡¢ËµÃ÷
1£¬ÊÖ²áÒ³·ÖΪºÃ¼¸¸ö²¿·Ö£¬ÈçÏÂËùʾ£º
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
2£¬Æ京ÒåÈçÏ£º
man1 man2 man3 man4 man5 man6 man7 man8 man9,ÿÖÖÀàÐͶ¼Óв»Í¬µÄº¬Òå¡£
Man1£ºÆÕͨÓû§µÄ¿ÉÖ´ÐÐÃüÁîÊÖ²á
Man2£ºÏµÍ³µ÷ÓÃÊֲᣬÄں˺¯ÊýµÄ˵Ã÷
Man3£º×Ó³ÌÐòÊֲᣬ¿âº¯ÊýµÄ˵Ã÷
Man4£ºÏµÍ³É豸Êֲᣬ“/dev”Ŀ¼ÖÐÉ豸ÎļþµÄ²Î¿¼ËµÃ÷
Man5£ºÅäÖÃÎļþ¸ñʽÊֲᣬ´ó¶àΪ“/etc”Ŀ¼Ï¸÷ÖÖÅäÖÃÎļþµÄ¸ñʽÃèÊö
Man6£ºÓÎÏ·ºÍȤζС³ÌÐòµÄ˵Ã÷ÊÖ²á
Man7£ºÐ­Òéת»»ÊֲᣬҲ°üÀ¨Ò»Ð©ÔÓÏî
Man8£ºÏµÍ³¹ÜÀí¹¤¾ßÊֲᣬÕâЩÃüÁîÖ»¿É³¬¼¶Óû§²Å¿ÉÒÔÖ´ÐÐ
Man9£ºLINUXϵͳÀý³ÌÊÖ²á
Mann:TCL»òTKÃüÁî
¶þ¡¢Ê¹Ó÷½·¨ 
1£¬ÊÖ²áÒ³°´ÕÕ²»Í¬µÄÀàÐͱ»·ÅÔÚ²»Í¬µÄĿ¼ÏÂ
#ls –d /usr/share/man/man?
2£¬Ã¿¸öĿ¼Öж¼´æ·Å×ŶÔÓ¦ÀàÐ͵ÄÊÖ²áÎļþ£¬ÊÖ²áÎļþ´ó¶àΪ".gz"ѹËõÎļþ£¬ÃüÃû¹æÔòΪ"ÊÖ²áÃû³Æ.ÊÖ²áÀàÐÍ.gz"( hd.4.gz)
#ls /usr/share/man/man4
3£¬Ê¹ÓÃ"man N intro"ÃüÁî¿É²é¿´Ä³ÀàÐÍÊÖ²áÒ³µÄ˵Ã÷£¬"N"ΪÊÖ²áÒ³µÄÀàÐÍ
#man 4 intro
4£¬Èç¸÷ÀàÐÍÖÐÓÐͬÃûµÄÊÖ²áÒ³£¬Ê¹ÓÃmanÃüÁîʱӦÏÈÖ¸¶¨ÊÖ²áÀàÐÍÔÙÖ¸¶¨ÊÖ²áÃû³Æ¡£
#man 1 passwd
#man 5 passwd
#man man
5£¬ÓÃman²é¿´Ò»¸ö¾ßÌåµÄÊÖ²áʱ£¬¿ÉÒÔÓÃ/À´ÍùÇ°ËÑË÷£¬?ÍùºóËÑË÷£¬ggÌøÖÁÊÖ²á×²¿£¬GÌøÖÁÊÖ²áβ²¿£¬Ctrl-LË¢ÐÂÆÁÄ»£¬Õâ¸öºÍvimµÄĬÈÏ°´¼ü°ó¶¨Ò»Ö¡£
6£¬ÔÚshellÖÐÊäÈë man+Êý×Ö+ÃüÁî/º¯Êý ¼´¿ÉÒԲ鵽Ïà¹ØµÄÃüÁîºÍº¯Êý¡£Èô²»¼ÓÊý×Ö£¬ÄÇmanÃüÁîĬÈÏ´ÓÊý×Ö½ÏСµÄÊÖ²áÖÐÑ°ÕÒÏà¹ØÃüÁîºÍº¯Êý¡£
ÀýÈ磬±¾À´ÊÇÏëÑ°ÕÒc±ê×¼¿âÖеÄrand()º¯Êý£¬Ö±½ÓʹÓÃman randµÃµ½µÄÊÇÒ»¸örandÃüÁîµÄÊֲᣬֱ½ÓÓÃÀ´²úÉúÒ»¸öËæ»úÊý£¬Õâ¸öÄÚÈÝÔÚÊÖ²ásection 1ÖС£Èç¹ûʹÓÃman 3 rand¾Í¿ÉÒԵõ½×Ô¼ºÏëÒªµÄ¿âº¯ÊýÖÐrand()µÄÓ÷¨ÁË¡£
Èý¡¢Ê¹Óü¼ÇÉ
1£¬Ê¹ÓÃÊéÇ©
man ÆäʵÊǵ÷Óà less À´ÏÔʾÊÖ²


Ïà¹ØÎĵµ£º

linux»·¾³±äÁ¿ÉèÖÃ×ܽá(תÔØ)

1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not
found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²
ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedHat ......

linux socket±à³ÌÏà¹Ø֪ʶµÄ×ܽá

1£ºsocket±à³ÌÖвÉÓõÄЭÒé×åÖ÷ÒªÓÐÁ½ÖÖ
£º
   1>£ºÍøÂçЭÒé×å(ÐÎʽÈ磺AF_INET, PF_INETµÈ)
   2>£º±¾µØunixÓò¸ñʽµÄЭÒé×å(ÐÎʽÈ磺AF_LOCAL, AF_UNIXµÈ)
   ×¢£ºÐ­Òé×åµÄÑ¡ÔñÌåÏÖÔÚ  int  socket(int domain, inst type, int protocol)º¯ÊýµÄµÚÒ»¸ö²ÎÊý´¦¡£
2£ºÕâÁ½ ......

³ÌÐòÉÕ¼ £¨amlogic open linux£© ѧϰ±Ê¼Ç

Ò»¡¢UbootÉÕ¼
1¡¢Á¬½Ójtag¡¢ÍøÏß¡¢´®¿Ú
2¡¢°Ñtftpd32.exe·Åµ½ubootÉÕ¼µÄĿ¼Àï
3¡¢Æô¶¯tftpd32.exe
4¡¢Æô¶¯ttermpro.exe
5¡¢Ë«»÷uboot.bat
6¡¢µÈµ½´°¿Úµ¯³öÀ´
8¡¢ÔÚ´®¿Ú¹¤¾ßÖÐ
1¡¢ Ö´ÐÐprint ÃüÁ²é¿´»·¾³±äÁ¿
2¡¢Ö´ÐÐsetenv serverip ¾ßÌåIP µØÖ·£¬ÅäÖÃtftp server µÄµØÖ·µÈ
3¡¢Ö´ÐÐsetenv loadaddr 8200000 ......

linux fg bg ctrl + z jobs & µÈÃüÁî

fg¡¢bg¡¢jobs¡¢&¡¢ctrl + z¶¼ÊǸúϵͳÈÎÎñÓйصģ¬ËäÈ»ÏÖÔÚ»ù±¾Éϲ»ÔõôÐèÒªÓõ½ÕâЩÃüÁµ«Ñ§»áÁËÒ²ÊǺÜʵÓõÄ
Ò»¡£& ×î¾­³£±»Óõ½
Õâ¸öÓÃÔÚÒ»¸öÃüÁîµÄ×îºó£¬¿ÉÒÔ°ÑÕâ¸öÃüÁî·Åµ½ºǫִ́ÐÐ
¶þ¡£ctrl + z
¿ÉÒÔ½«Ò»¸öÕýÔÚǰִ̨ÐеÄÃüÁî·Åµ½ºǫ́£¬²¢ÇÒÔÝÍ£
Èý¡£jobs
²é¿´µ±Ç°ÓжàÉÙÔÚºǫ́ÔËÐеÄÃüÁî
ËÄ¡£fg
½ ......

Compile Linux Kernel Modules

ÎÒÕýÔÚѧϰдlinux device driver for embedded system.
ÎÒÓÐÒ»¸ölinuxǶÈëʽÉ豸£¬Ò²ÓÐÕâ¸öÉ豸µÄlinuxÔ´´úÂë¡£Ò²ÓÐcross compiler tool chain.
µÚÒ»²½£¬¾ÍÊÇдһ¸ö¼òµ¥µÄhelloÄ£¿é£¬È»ºó×°µ½É豸ÖС£ÒÔÑéÖ¤ÎÒÕâ¸ö¿ª·¢»·¾³¡£
ÔÚÍøÉÏËÑË÷ÁËһϣ¬ how to cross compile linux device driver
·¢ÏÖÔÚlinux´úÂë¸ùĿ¼µÄMak ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ