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

½ñÌìÈ¥ÃæÊÔÅöµ½Á˼¸¸öÃæÊÔÌâ²»×ö

·¢²¼Ê±¼ä:2009-08-25 15:07:17À´Ô´:ºìÁª×÷Õß:ÂúÁ³ºú×Ó
´ó¼Ò°ïæÏëÏë
1..ϵͳÖÐËùÓÐÓû§µÄÓû§ÃûºÍUIDÏÔʾ³öÀ´

2.½á¹û°´Óû§ÃûÊ××Öĸ˳ÐòÅÅÐò



3.½á¹û°´UID´óСÅÅÐò



4.°ÑÎļþÖгöÏÖ×î¶àµÄÐÐÈ¡³öÀ´£¬²¢ÇÒÏÔʾ³öÏÖ¶àÉÙ´Î



5.¹ýÂ˳ö/etc/inittabÎļþµ±ÖеĿÕÐÐ




6.¹ýÂ˳öº¬ÓÐÁ½¸öbinÐÐ /etc/passwd




7ÔÚ/home ²éÕÒËùÓÐÕßÊÇuser1µÄÎļþºÍĿ¼Ȼºóɾ³ý£¬µ«Êǻᱨ´í


:0w223dc
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 23 ÌõÆÀÂÛ

  1. h_h ÓÚ 2009-09-02 17:18:29·¢±í:

    ÒýÓÃ:
    5.¹ýÂ˳ö/etc/inittabÎļþµ±ÖеĿÕÐÐ

    grep '^$' /etc/inittab
    ty8080 ·¢±íÓÚ 2009-8-28 10:33


    Ì«¾­µäÁË£¬linux¾ÍÊÇÇ¿

  2. ty8080 ÓÚ 2009-08-28 10:33:01·¢±í:

    5.¹ýÂ˳ö/etc/inittabÎļþµ±ÖеĿÕÐÐ

    grep '^$' /etc/inittab

  3. ty8080 ÓÚ 2009-08-28 10:25:34·¢±í:

    ÒýÓÃ:
    ȯLS
    ºÜ¾ÃûÅö¹ýdosÅú´¦ÀíÁË£¬ÉúÊèÁË):o:s
    ÕâÀïÌù¸ö±ðÈËдµÄºÍÌâÄ¿ÓйصÄdosÅú´¦Àí@echo off
    :: ͳ¼Æÿ¸ö×Ö·û³öÏֵĴÎÊý£¬²¢Çó³ö³öÏÖ´ÎÊý×î¶àµÄ×Ö·û
    setlocal ENABLEDELAYEDEXPANSION
    set str=adadfdfseffserfe ...
    yiyepianzhou ·¢±íÓÚ 2009-8-27 18:23



    Ì«¸ÐлÁË¡£ÓÖѧÁËÒ»ÕС£(e:e2s

  4. lon83129 ÓÚ 2009-08-27 18:46:29·¢±í:

    Åú´¦ÀíºÍshell½Å±¾µÄ×÷Óñ¾À´¾ÍÒ»ÑùµÄ

  5. yiyepianzhou ÓÚ 2009-08-27 18:23:44·¢±í:

    ȯLS
    ºÜ¾ÃûÅö¹ýdosÅú´¦ÀíÁË£¬ÉúÊèÁË):o:s
    ÕâÀïÌù¸ö±ðÈËдµÄºÍÌâÄ¿ÓйصÄdosÅú´¦Àí[code]@echo off
    :: ͳ¼Æÿ¸ö×Ö·û³öÏֵĴÎÊý£¬²¢Çó³ö³öÏÖ´ÎÊý×î¶àµÄ×Ö·û
    setlocal ENABLEDELAYEDEXPANSION
    set str=adadfdfseffserfefsefseetsdmg
    set /a m=0,n=0,l=0
    call :loop
    :: ÒÔÏÂÊÇÇó³öÏÖ´ÎÊý×î¶àµÄ×Ö·û
    for /f "tokens=1,2 delims==" %%i in ('set ×Ö·û£º') do (
    echo %%i=%%j
    if %%j GTR !l! set l=%%j& set m=%%i
    )
    echo.³öÏÖ´ÎÊý×î¶àµÄ%m%=%l%
    pause
    goto :EOF
    :loop
    call set m=%%str:~%n%,1%%
    if not defined m goto :EOF
    set /a "×Ö·û£º%m%+=1"
    set /a n+=1
    goto loop[/code]£¨ÔËÐл·¾³winxp£©
    Æäʵdos Åú´¦ÀíÊǺÜÓÐÒâ˼µÄ(so):)

  6. ty8080 ÓÚ 2009-08-27 11:25:52·¢±í:

    ÒýÓÃ:


    ÎÒÒ²ºÜÏëÖªµÀ
    lon83129 ·¢±íÓÚ 2009-8-27 11:19



    ȺÖڵĺôÉùÕâôǿÁÒÁË£¬¿ì¸ø´ð°¸°É

  7. lon83129 ÓÚ 2009-08-27 11:19:41·¢±í:

    ÒýÓÃ:
    Èç¹ûÓÃdosµÄÅú´¦Àí£¬Õâ¸ö»¹ÊDz»ËãÌ«ÄÑ(so):)
    yiyepianzhou ·¢±íÓÚ 2009-8-26 20:16


    ÎÒÒ²ºÜÏëÖªµÀ

  8. ÂúÁ³ºú×Ó ÓÚ 2009-08-27 10:00:27·¢±í:

    Ç°Á½Ã»¿Õ·¢ÁËÌù¾Í³·£¬Ã»Ïëµ½´ó¼Ò¶¼ÕâôÈÈÐÄ
    Ì«¸ÐлÁË {:3_125:}

  9. ty8080 ÓÚ 2009-08-27 09:28:06·¢±í:

    ÒýÓÃ:
    Èç¹ûÓÃdosµÄÅú´¦Àí£¬Õâ¸ö»¹ÊDz»ËãÌ«ÄÑ(so):)
    yiyepianzhou ·¢±íÓÚ 2009-8-26 20:16



    ºÜÏëÖªµÀdocÅú´¦ÀíÔõôд¡£ÄÜ·ñÖ¸µãÒ»ÏÂ{:3_114:}

  10. yiyepianzhou ÓÚ 2009-08-26 20:16:31·¢±í:

    Èç¹ûÓÃdosµÄÅú´¦Àí£¬Õâ¸ö»¹ÊDz»ËãÌ«ÄÑ(so):)

  11. ty8080 ÓÚ 2009-08-26 17:09:54·¢±í:

    4.°ÑÎļþÖгöÏÖ×î¶àµÄÐÐÈ¡³öÀ´£¬²¢ÇÒÏÔʾ³öÏÖ¶àÉÙ´Î

    sort a|uniq -c|sort -n|tail -n 1

    ÆäÖÐaÊDzâÊÔÓõÄÒ»¸öÎļþ

  12. jiehe ÓÚ 2009-08-26 15:54:51·¢±í:

    ):o:s

  13. Áõ³å ÓÚ 2009-08-26 15:36:45·¢±í:

    ÔÎ

  14. ty8080 ÓÚ 2009-08-26 14:23:23·¢±í:

    ÒýÓÃ:
    ûÓÐ-f°¡
    l460618498 ·¢±íÓÚ 2009-8-26 13:33


    ÊÔÑé¹ýÁË£¬Äܲé³öÀ´

  15. l460618498 ÓÚ 2009-08-26 13:33:36·¢±í:

    ûÓÐ-f°¡

  16. ty8080 ÓÚ 2009-08-26 09:43:15·¢±í:

    3.½á¹û°´UID´óСÅÅÐò

    cut -f1,3 -d: /etc/passwd|sort -t: -k 2 -n

  17. ty8080 ÓÚ 2009-08-26 09:41:21·¢±í:

    2.½á¹û°´Óû§ÃûÊ××Öĸ˳ÐòÅÅÐò
    ÓùܵÀ£¬È»ºósort¾ÍÐÐÁË
    cut -f1,3 -d: /etc/passwd | sort

  18. ty8080 ÓÚ 2009-08-26 09:36:09·¢±í:

    1..ϵͳÖÐËùÓÐÓû§µÄÓû§ÃûºÍUIDÏÔʾ³öÀ´
    cut -f1,3 -d: /etc/passwd

  19. numdon ÓÚ 2009-08-26 00:26:39·¢±í:

    »ù´¡±¿£¬ÎÞÒ»µÀ»á×ö

  20. l460618498 ÓÚ 2009-08-25 18:55:40·¢±í:

    ²»ÖªµÀ

  21. ÓêÒ¹»¨ ÓÚ 2009-08-25 18:41:11·¢±í:

    ÄѲ»³ÉÖ¸ . ºÍ .. ²»ÄÜɾ³ý³ö´í

  22. ÓêÒ¹»¨ ÓÚ 2009-08-25 18:22:10·¢±í:

    [i=s] ±¾Ìû×îºóÓÉ ÓêÒ¹»¨ ÓÚ 2009-8-25 18:39 ±à¼­ [/i]

    È«ÊÇshellµÄ

    ÕâµÚÆßÌ⣬»¹Èóö´íÊÇʲôÒâ˼

    find /home -user user1 -exec rm -rf {} \;

    ¸ÄһϠ-exec ºóÃæµÄ²ÎÊýÈÃÆä³ö´í£¬²»Ì«¶®

  23. ty8080 ÓÚ 2009-08-25 16:11:43·¢±í:

    1# ÂúÁ³ºú×Ó

    Ï°à»ØÈ¥°ïÄãÏëÏë