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

ÎÒµÄRHCE¿ÎÌÃʵÑ顶Óû§ÐÅÏ¢ºÍman¡·

·¢²¼Ê±¼ä:2006-02-15 09:11:22À´Ô´:ºìÁª×÷Õß:Mrlinux
µ¥ÔªËÄʵÑ飺Óû§ÐÅÏ¢ºÍman

¹À¼ÆÓÃʱ£º30·ÖÖÓ
Ä¿±ê£ºÊìϤ¼¸¸öÓû§Ê¶±ðºÍÕÊ»§Çл»ÃüÁîµÄʹÓá£

ʵÑéÇ°×¼±¸£º×¼±¸Ò»¸ö°²×°ºÃ£¬Íê³É¹ýµ¥ÔªÈýʵÑéµÄRed Hat Linux ϵͳ£¬³ý´ËÖ®ÍâÒ»¸ö½Ðvisitor µÄ·ÇÌØȨÕʺţ¬ÆäÃÜÂëΪvisitor¡£¼ì²éÒ»ÏÂÖ¸ÄÏÒÔÈ·ÈÏÕâ¸öÕʺÅÊÇ·ñÒѾ­´æÔÚÔÚϵͳÖС£Èç¹ûÄãµÄvisitor ÕʺŻ¹Î´½¨Á¢£¬Ôò°´ÈçÏ´ÎÐò²Ù×÷£º

1¡¢ÒÔroot Óû§µÇ¼
2¡¢ÊäÈë # useradd visitor
3¡¢ÊäÈë # passwd visitor
Changing password for user visitor
New UNIX password: {ÔÚÕâÀïÊäÈëvisitor}
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password {ÖØÐÂÊäÈëvisitor}
passwd: all authentication tokens updated successfully

ʵÑé1£º±¾µØÓû§µÇ¼
ÈÎÎñ£º
1¡¢ÍêȫעÏúÄãµÄµÇ½¡£Îñ±ØÈ·ÈÏÄãÒ²Í˳öÁËËùÓеÄÐéÄâÖն˺ÍX Window ϵͳ¡£

2¡¢°´ Çл»µ½ÐéÄâÖÕ¶Ë1(tty1)¡£

3¡¢ÒÔrootÉí·ÝµÇ¼¡£

4¡¢¼ì²â¸ÃµÇ¼¡£ÔËÐÐÏÂÁÐÃüÁ
# whoami
# groups
# id
¼ì²âÕâЩÃüÁîµÄÊä³ö¡£

5¡¢¼ì²âµ±Ç°¹¤×÷Õ¾ËùÓеĵǼ¡£ÕâʱӦ¸ÃÖ»ÓÐÒ»¸öÓû§ÔÚ¸ÃϵͳÉϵǼ¡£ÒÔÏÂÃüÁîµÄÊä³ö½«Ëæ×ÅʵÑéµÄ½øÐбäµÃÔ½À´Ô½ÓÐȤ¡£
# users
# who
# w
¼ì²âÕâЩÃüÁîµÄÊä³ö¡£

6¡¢°´ Çл»µ½ÐéÄâÖÕ¶Ë2(tty2)¡£

7¡¢Ê¹ÓÃstudentÉí·ÝµÇ¼¡£

8¡¢¼ì²â¸ÃµÇ¼µÄ¡£ÔËÐÐÏÂÁÐÃüÁ
$ whoami
$ groups
$ id
¼ì²âÕâЩÃüÁîµÄÊä³ö¡£

9¡¢¼ì²âµ±Ç°¹¤×÷Õ¾µÄËùÓеǼ£º
$ users
$ who
$ w
¼ì²âÕâЩÃüÁîµÄÊä³ö¡£

10¡¢°´ Çл»µ½ÐéÄâÖÕ¶Ë3(tty3)¡£

11¡¢ÒÔvisitorÉí·ÝµÇ¼

12¡¢¼ì²â¸ÃµÇ¼¡£ÔËÐÐÏÂÁÐÃüÁ
$ whoami
$ groups
$ id
¼ì²âÕâЩÃüÁîµÄÊä³ö

13¡¢¼ì²âµ±Ç°¹¤×÷Õ¾ËùÓеĵǼ£º
$ users
$ who
$ w
¼ì²âÕâЩÃüÁîµÄÊä³ö¡£

ʵÑé2£ºÇл»Óû§ÕʺÅ
ÈÎÎñ£º
1¡¢°´ Çл»µ½ÐéÄâÖÕ¶Ë3(tty3)¡£

2¡¢ÔËÐÐpwd ÃüÁîÈ·¶¨Ä㵱ǰµÄĿ¼¡£¼ì²âÄ㵱ǰµÄ¿ÉÖ´ÐÐÎļþËÑË÷·¾¶¡£¼ì²âÄãµÄÓû§ÐÅÏ¢¡£
$ id
$ pwd
$ echo $PATH

Ôڴ˼Ǽ½á¹û£º
id = ______________________
pwd = _____________________
$PATH = ___________________________________________________________________

3¡¢Ê¹ÓÃsu ÃüÁî²¢²»´ø "-" Ñ¡ÏîÇл»µ½root Óû§¡£ÔËÐÐpwd ÃüÁîÈ·ÈÏÄãµÄµ±Ç°Ä¿Â¼¡£¼ì²âÄ㵱ǰµÄ¿ÉÖ´ÐÐÎļþËÑË÷·¾¶¡£
$ su
# id
# pwd
# echo $PATH

Ôڴ˼Ǽ½á¹û£º
id = ______________________
pwd = _____________________
$PATH = ___________________________________________________________________

4¡¢Í˳öroot Õʺţ¬»Øµ½student Õʺš£
# exit

5¡¢Ê¹ÓÃsu - Çл»µ½root Õʺš£ÔËÐÐpwd ÃüÁîÈ·ÈÏÄãµÄµ±Ç°Ä¿Â¼¡£¼ì²âÄ㵱ǰµÄ¿ÉÖ´ÐÐÎļþËÑË÷·¾¶¡£
$ su -
# id
# pwd
# echo $PATH

Ôڴ˼Ǽ½á¹û£º
id = ______________________
pwd = _____________________
$PATH = ___________________________________________________________________

6¡¢×¢Ïú±¾´ÎʵÑéËùÓеĵǼ£¬°üÀ¨±¾µØµÄºÍÔ¶³ÌµÄ¡£

ʵÑé3£ºÊ¹ÓÃman
ÈÎÎñ£º
1¡¢²éѯlprµÄÊÖ²á(manual page)
$ man lpr

2¡¢lpr µÄ-m Ñ¡ÏîÓÐʲôÓô¦£¿(Ìáʾ£ºÊ¹ÓÃ"/"¼ü¿ªÊ¼Ò»´Î²éÕÒ£¬ÊäÈë-m£¬È»ºó°´»Ø³µ)
___________________________________________________________________

3¡¢ÔÚlpr ÖÐÈçºÎ¸Ä±ä´òÓ¡Ö½ÕŵĿí¶È£¿
___________________________________________________________________

4¡¢lpr ÓÐûÓÐÓõ½µÄ FILES£¿(Èç¹ûÓУ¬ÎÞÐèÁгö)
___________

5¡¢ÔÚÆÁÄ»ÉÏÏÔʾmanual pagesÖеÄÃüÁîÃû£¬¸ÃÃüÁîµÄÃèÊö(des cription)ÖÐÌáµ½"posts cript"¡£

6¡¢ÔÚÉÏÃæµÄ½á¹ûÖвéÕÒ¿ÉÒÔ½«Posts cript»òÕßPDFת»»³ÉASCIIµÄÃüÁî¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 2 ÌõÆÀÂÛ

  1. captail ÓÚ 2006-10-05 19:58:53·¢±í:

    Ç¿ÁÒÖ§³Ö

  2. iflove ÓÚ 2006-09-26 23:17:13·¢±í:

    ¶¥ÏÂ