ºìÁªLinuxÃÅ»§
Linux°ïÖú

Linux ShellʵÀý¾«½â±Ê¼Ç

·¢²¼Ê±¼ä:2007-05-22 00:24:32À´Ô´:ºìÁª×÷Õß:RoadCloud
Ç°ÑÔ
¿´Êéʱд±Ê¼ÇÊǸöºÃÏ°¹ß.
µÚÒ»Ìì:
1.ÖØÒªµÄshell
bash
tcsh
2.ÃüÁîÐÐÖ´ÐÐ˳Ðò
±ðÃû
¹Ø¼ü×Ö
º¯Êý
ÄÚ½¨ÃüÁî
¿ÉÖ´ÐгÌÐò //´ÅÅÌÎļþ
3.½ø³Ì:ÔÚlinuxÖпÉÒÔÓɵ¥¶ÀµÄpid±êʶµÄ³ÌÐò
4.½ø³Ì²é¿´ÃüÁî
ps
patree
5.shellϵͳµ÷ÓÃ
fork
wait
exec:¸´ÖƸ¸½ø³Ì,µÃµ½×Ó½ø³Ì,ÒÔнø³Ì×°Èë×Ó½ø³Ì
exit:ÔÚÈκÎÇé¿öÏÂÍ˳ö½ø³Ì,Í˳öʱ·¢³ösigchildÐźÅ,ÔÚ0-255Ö®¼ä,0Ϊ³É¹¦Í˳ö,·Ç0Ôò·¢ÉúÁËijЩ´íÎó.$?Ϊ×îºóÒ»¸ö¿ÉÖ´ÐÐÃüÁîÍ˳öʱµÄ״̬±äÁ¿
6.¼Ì³Ð
×Ó½ø³ÌÒª´Ó¸¸½ø³ÌÄÇÀï¼Ì³ÐºÜ¶à¶«Î÷:
6.1
ȨÏÞ:
***Óû§È¨ÏÞ:×îÖ÷ÒªµÄÊÇEUID,EGID¿ÉÒÔͨ¹ýsetuid,setgidÀ´ÐÞ¸Ä.
***ÎļþȨÏÞ:umask=022.¿ÉÒÔÓÉchmod,chownÀ´¸ü¸ÄÎļþȨÏÞºÍÊôÖ÷.
6.2
¹¤×÷Ŀ¼:×Ó½ø³ÌÓи÷×ԵŤ×÷Ŀ¼,ÇÒ¿ÉÒÔÓÃÄÚ²¿ÃüÁîcdÀ´¸ü¸Ä
6.3
±äÁ¿:
***»·¾³±äÁ¿:¸¸´«×Ó,×Ó´«Ëï.×Óshell¸Ä±ä»·¾³±äÁ¿Öµ,µ«²»»á´«»Ø¸ø¸¸shell
***¾Ö²¿±äÁ¿:˽ÓÐ,²»´«×ÓËï.
7.Öض¨ÏòºÍ¹ÜµÀ
7.1Îļþ˵Ã÷·û:
0±ê×¼ÊäÈë
1±ê×¼Êä³ö
2±ê×¼´íÎó
3Ò»¸öÐÂÎļþ
7.2Öض¨Ïò
>
<
>>
<<
7.3¹ÜµÀ:¹²ÏíµÄÄÚ´æÇø,Ò»±ßдһ±ß¶Á.ʡȥд»º³åÎļþµÄÂé·³.ÓÉpipeϵͳµ÷ÓÃʵÏÖ,²Ù×ݵÄÊÇÁ½¸ö¹ÜµÀ˵Ã÷·û.
8.ÐźÅ
shell¿ÉÒÔ¶ÔһЩ±ê×¼ÐźÅ×ö³öÖ¸¶¨µÄ´¦Àí.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 51 ÌõÆÀÂÛ

  1. xpxxmm ÓÚ 2007-08-03 13:53:09·¢±í:

    °Ñ×Ô¼ºÑ§Ï°µ½µÄ¶«Î÷ÄóöÀ´·ÖÏí,ÒѾ­ÊÇÖֺܲ»´íµÄÏ°¹ßÁË,¶øÇÒ»¹ÓÐ×ö±Ê¼ÇµÄÏ°¹ß!!²»´íÀ²!!
    ¸Ðл¥Ö÷!!

  2. 218.107.141.* ÓÚ 2007-06-05 10:47:02·¢±í:

    ÓÐûÓиü¶àµÄÄÚÈÝ?

    ÇëÎÊÄÄλ´óÏÀÖªµÀ:
    ÔÚlinuxÏÂ, ÈçºÎ´Ó ±»µ÷Óýø³Ì ÖÐ Í˳ö×Ô¼º²¢Í˳ö µ÷Óýø³Ì?


    http://jinniLab.com

  3. 218.107.141.* ÓÚ 2007-06-05 10:44:46·¢±í:

    ÄÚÈÝÌ«ÉÙÁË.

  4. cxqcxq0177 ÓÚ 2007-05-28 21:01:05·¢±í:

    СѧÉúµÄ±Ê¼Ç£¿
    ÕæÊǼòµ¥¡¢Ö±½Ó

  5. hbioer ÓÚ 2007-05-27 10:27:37·¢±í:

    Ôΰ¡£¬¾ÍÕâôµã°¡£¡

  6. ¼ÅįÄк¢ ÓÚ 2007-05-26 13:38:32·¢±í:

    :49ab:1

  7. ¼ÅįÄк¢ ÓÚ 2007-05-26 13:38:29·¢±í:

    :time:1

  8. ¼ÅįÄк¢ ÓÚ 2007-05-26 13:38:24·¢±í:

    :0L

  9. xxuhai ÓÚ 2007-05-25 10:42:12·¢±í:

    :ha3nd :0L

  10. ¼ÅįÄк¢ ÓÚ 2007-05-24 22:22:06·¢±í:

    ÔÎ

  11. °µÒ¹ ÓÚ 2007-05-23 07:13:13·¢±í:

    ding