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

²é¿´linux°æ±¾ÃüÁî

1. ²é¿´Äں˰汾ÃüÁ
1) [root@q1test01 ~]# cat /proc/version
Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005
2) [root@q1test01 ~]# uname -a
Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
3) [root@q1test01 ~]# uname -r
2.6.9-22.ELsmp
2. ²é¿´linux°æ±¾£º
1) µÇ¼µ½·þÎñÆ÷Ö´ÐÐ lsb_release -a ,¼´¿ÉÁгöËùÓа汾ÐÅÏ¢,ÀýÈç:
[root@3.5.5Biz-46 ~]# [root@q1test01 ~]# lsb_release -a
LSB Version: :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-
ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Release: 4
Codename: NahantUpdate2
×¢:Õâ¸öÃüÁîÊÊÓÃÓÚËùÓеÄlinux£¬°üÀ¨Redhat¡¢SuSE¡¢DebianµÈ·¢Ðа档
2) µÇ¼µ½linuxÖ´ÐÐcat /etc/issue,ÀýÈçÈçÏÂ:
[root@q1test01 ~]# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Kernel \r on an \m
3) µÇ¼µ½linuxÖ´ÐÐcat /etc/redhat-release ,ÀýÈçÈçÏÂ:
[root@q1test01 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
×¢:ÕâÖÖ·½Ê½Ï¿ÉÒÔÖ±½Ó¿´µ½¾ßÌåµÄ°æ±¾ºÅ£¬±ÈÈç AS4 Update 1
4)µÇ¼µ½linuxÖ´ÐÐrpm -q redhat-release ,ÀýÈçÈçÏÂ:
[root@q1test01 ~]# rpm -q redhat-release
redhat-release-4AS-3
×¢:ÕâÖÖ·½Ê½Ï¿ɿ´µ½Ò»¸öËùνµÄreleaseºÅ£¬±ÈÈçÉϱߵÄÀý×ÓÊÇ3
Õâ¸öreleaseºÅºÍʵ¼ÊµÄ°æ±¾Ö®¼ä´æÔÚÒ»¶¨µÄ¶ÔÓ¦¹Øϵ£¬ÈçÏ£º
redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3
redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4
redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4
redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1
redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2
redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3
redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4
Áí:µÚ3)¡¢4)Á½ÖÖ·½·¨Ö»¶ÔRedhat LinuxÓÐЧ¡£


Ïà¹ØÎĵµ£º

LInux±Ê¼Ç

LInux±Ê¼Ç
¹Û²ìϵͳµÄʹÓÃ״̬:Èç¹ûÒª¿´Ä¿Ç°ÓÐË­ÔÚÔÚÏß,¿ÉÒÔÏ´ï who Õâ¸öÖ¸Áî,¶øÈç¹ûÒª¿´ÍøÂçµÄÁª
»ú״̬,¿ÉÒÔÏ´ï netstat -a Õâ¸öÖ¸Áî,¶øÒª¿´±³¾°Ö´ÐеijÌÐò¿ÉÒÔÖ´ÐÐ ps -aux Õâ¸öÖ¸Áî¡£
ʹÓÃÕâЩָÁî¿ÉÒÔÈÃÄãÉÔ΢Á˽âÖ÷»úÄ¿Ç°µÄʹÓÃ״̬!
¹Ø»úµÄÕýÈ·Ö¸ÁîÓ÷¨啰!
• ½«Êý¾Ýͬ²½Ð´ÈëÓ²ÅÌÖеÄÖ¸Áî: sync
& ......

Linux Kernel Threads in Device Drivers

 Purpose
This examples shows how to create and stop a kernel thread.
The driver is implemented as a loadable module. In the init_module() routine five kernel threads are created. This kernel threads sleep one second, wake up, print a message and fall asleep again. On unload of the module (cle ......

linuxÖеĶ¯Ì¬¿âºÍ¾²Ì¬¿â

 1.¸ÅÄîºÍÇø±ð£º
    ¾²Ì¬¿â¾ÍÊÇÔÚ±àÒë¹ý³ÌÖÐһЩĿ±êÎļþµÄ¼¯ºÏ¡£¾²Ì¬¿âÔÚ³ÌÐòÁ´½ÓµÄʱºòʹÓã¬Á´½ÓÆ÷»á½«³ÌÐòÖÐʹÓõ½º¯ÊýµÄ´úÂë´Ó¿âÎļþÖп½±´µ½Ó¦ÓóÌÐòÖС£Ò»µ©Á´½ÓÍê³É£¬ÔÚÖ´ÐгÌÐòµÄʱºò¾Í²»ÐèÒª¾²Ì¬¿âÁË¡£
    ÓÉÓÚÿ¸öʹÓþ²Ì¬¿âµÄÓ¦ÓóÌÐò¶¼ÐèÒª¿½±´ËùÓú¯ÊýµÄ´úÂë£¬Ë ......

linux telnetµÇ½ÂýÎÊÌâ

 ¸ü¸Ä/etc/resolv.confÎļþ
    Èç¹ûÄãµÄlinuxÖ÷»úÖ»ÊÇÔÚ¾ÖÓòÍøÄÚ¹¤×÷£¬Ç뽫nameserverµØÖ·¸ÄΪÍø¿¨±¾ÉíµÄµØÖ·¡£
    Àý£º
    # vi /etc/resolv.conf
    nameserver 192.168.0.160
    search site
    È»ºó ......

[Ê®ÔÂÍùÎô]——LinuxÄÚºËÖеÄlist.hdz̸

ΪʲôҪ½Ð×ö“Ê®ÔÂÍùÎô”ÄØ£¬ÊÇΪÁ˼ÍÄîÎÒµÄÔ­²©¿Í£¬http://www.casual0402.cn¡£
²»ÖªµÀΪʲô£¬Í»È»ÏëÀ´Ò»¸öеĿªÊ¼——¶øÄǸö²©¿Í´æ»îÖÁ½ñ¸ÕºÃÊ®¸öÔ£¬Ò²ÓÐÊ®¸öÔÂÀïµÄÎĵµ¡£
Ê®ÔÂÍùÎô£¬×ÜÓÐһЩ¾õµÃÕä¹óµÄ£¬ËùÒÔ°áǨµ½ÕâÀïÀ´¡£
¶øÕâƪÎÄÕÂÊÇÔÚ09.04.10ÀïдµÄ¡£
ÖÕ¹éÊÇÒ»¼Ò̸֮¡£
Jason Lee
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ