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

linuxÏÂÆÕͨÓû§Çл»Îªroot

ÔÚLinuxϵͳÖУ¬rootÓû§ÊÇÒ»¸öȨÏ޷dz£´óµÄÓû§£¬ÕýÒòΪÆäȨÏÞ´óµ½ÄÜΣ¼°²Ù×÷ϵͳµÄ°²È«£¬ËùÒÔÎÒÃÇƽʱ²Ù×÷µçÄÔµÄʱºò¶¼ÊÇÓõÄÆÕͨÓû§
Ãû£¬Ö»ÓÐÔÚijЩ³¡ºÏÉèÖÃÐèÒª³¬¼¶Óû§È¨ÏÞµÄʱºòÔÙÁÙʱÓÃsuÃüÁîÇл»ÎªrootÓû§¡£²»¹ýÓÐʱºò²»ÏëÈÃÎÒµÄrootÃÜÂë¸æËß±ðÈË£¬µ«ÊÇÒ²Ïë±ðÈË×öһЩ³¬¹ý
ÆÕͨÓû§°²È«¼¶±ðµÄ²Ù×÷Ó¦¸ÃÔõô×öÄØ£¬Õâ¸öʱºò¾ÍÓõ½ÁËsudoÃüÁî¡£
    sudoÃüÁîÆäʵҲ¾ÍÊǰѵ±Ç°Óû§Ö´Ðеĵ±Ç°Ö¸ÁîÔËÐ춱ðÌáÉý£¬±ÈÈç˵ÄãÒª±à¼­Ò»¸öϵͳÅäÖÃÎļþ£¬µ«ÊÇÖ»ÄÜrootÓû§²ÅÄܱ༭£¬ÆÕͨÓû§ÊÇÖ»¶Á״̬£¬Õâ
¸öʱºòÈç¹ûÄãÔÚÄãµÄ±à¼­ÃüÁîÇ°Ãæ¼ÓÉÏsudo£¬ÄÇôÕâ¾ä»°Ö´ÐоÍÈÃÄãÓг¬¼¶Óû§µÄȨÏÞ¡£ÊäÈëÍêsudoÒÔºó£¬Äã»á·¢ÏÖϵͳҪÄãÊäÈëÃÜÂ룬Õâ¸öʱºòÊäÈëµÄ²»
ÊÇrootÓû§µÄÃÜÂ룬¶øÊÇÄ㵱ǰloginÓû§µÄÃÜÂ룬Èç¹ûÃÜÂëÕýÈ·£¬ÃüÁî¾Í¿ÉÒԳɹ¦Ö´ÐС£
    ²»ÊÇ˵ʲôÓû§¶¼¿ÉÒÔËæ±ãÓÃsudoÃüÁîÈ¡µÃ³¬¼¶Óû§È¨Ï޵ģ¬ÓÐÒ»¸öÇ°Ìᣬ¾ÍÊÇÄãÕâ¸öÓû§±ØÐë´¦ÓÚsudoÓû§×éÀïÃ棬ÄÇÕâ¸ö×éÊÇÔõô¶¨ÒåµÄÄØ£¬ºÜ¼òµ¥£¬Õâ¸öÓû§×éÔÚ/etc/sudoersÎļþÖпÉÒÔÅäÖã¬Èç¹ûÄãÏë°Ñuser1Õâ¸öÓû§¼ÓÈësudoÓû§×飬ÄãÖ»Òª°ÑrootÅäÖõÄÄÇÐÐcopyÒ»·Ý£¬È»ºó°ÑrootÓû§Ãû±ä¸üΪuser1£¬Õâ¸öʱºòÄã¾Í¿ÉÒԳɹ¦·¢ÏÖÄãuser1Õâ¸öÓû§¿ÉÒÔʹÓÃsudoÃüÁî²Ù×÷À²¡£


Ïà¹ØÎĵµ£º

linuxÆô¶¯½Å±¾Á÷³Ì

/etc/profile:´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óû§µÚÒ»´ÎµÇ¼ʱ,¸ÃÎļþ±»Ö´ÐÐ.
²¢´Ó/etc/profile.dĿ¼µÄÅäÖÃÎļþÖÐËѼ¯shellµÄÉèÖÃ.
/etc/bashrc:Ϊÿһ¸öÔËÐÐbash shellµÄÓû§Ö´ÐдËÎļþ.µ±bash shell±»´ò¿ªÊ±,¸ÃÎļþ±»¶ÁÈ¡.
~/.bash_profile:ÿ¸öÓû§¶¼¿ÉʹÓøÃÎļþÊäÈëרÓÃÓÚ×Ô¼ºÊ¹ÓõÄshellÐÅÏ¢,µ±Óû§µÇÂ¼Ê ......

linuxÏÂÄÚ´æ¹ÜÀí¼ò½é

¼ÆËã»úÖеĴ洢Æ÷·ÖΪ£ºÖ÷´æºÍ¸¨´æ¡£ÆäÖÐÐèÒªÖ¸Ã÷µÄÊÇÖ÷´æÊÇ¿ÉÒÔ±»´¦ÀíÆ÷Ö±½Ó·ÃÎʵģ¬¶ø¸¨´æÊDz»Äܱ»´¦ÀíÆ÷Ö±½Ó·ÃÎʵġ£Ö÷´æµÄÈÝÁ¿Ò»°ãÏà¶ÔÓÚ¸¨´æ¶øÑÔÊǽÏСµÄ£¬ËùÒÔÔÚÏÖ´úµÄ¼ÆËã»úÌåϵÖУ¬Í¨³£Ê¹ÓõÄÊǶú»ú´æ´¢Ä£Ê½¡£ÀûÓø¨´æµÄ´óÈÝÁ¿À´Ìṩ½Ï´óµÄ´æ´¢¿Õ¼ä£¬´æ´¢×¼±¸ÔËÐеijÌÐòºÍÊý¾Ý£¬µ±ÐèҪʱ£¬ÔÚ½«ÆäÔØÈëÖ÷´æÖС£
¼ÆËã ......

Linux SSHÃüÁî´óÈ«


rm -rf mydir /* ɾ³ýmydirĿ¼ */
cd mydir /* ½øÈëmydirĿ¼ */
cd – /* »ØÉÏÒ»¼¶Ä¿Â¼ */
cd ~ /* »Ø¸ùĿ¼ */
mv tools tool /* °ÑtoolsĿ¼¸ÄÃûΪtool */
ln -s tool bac
/* ¸øtoolĿ¼´´½¨ÃûΪbacµÄ·ûºÅÁ´½Ó,×îÊìϤµÄÓ¦¸Ã¾ÍÊÇFTPÖÐwwwÁ´½Óµ½public_htmlĿ¼ÁË */
cp -a tool /home/leavex/www /* °Ñtoo ......

£¨×ªÔØ£©Linux »ã±àÓïÑÔ¿ª·¢Ö¸ÄÏ


Linux »ã±àÓïÑÔ¿ª·¢Ö¸ÄÏ
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
he ......

linuxÄÚºËÖÐusbϵͳÖ÷ÒªµÄÊý¾Ý½á¹¹

USB Äںˣ¨USBÇý¶¯£¬USBD £©´¦ÓÚϵͳµÄÖÐÐÄ£¬¶ÔÓÚËü½øÐÐÑо¿ÊÇÄܹ»½øÐÐUSBÇý¶¯¿ª·¢£¨°üÀ¨¿Í»§Çý¶¯ºÍÖ÷»úÇý¶¯£©µÄµÚÒ»²½¡£ËüΪ¿Í»§¶ËÇý¶¯ºÍÖ÷»ú¿ØÖÆÆ÷Çý¶¯ÌṩÁËÖ÷ÒªÊý¾Ý½á¹¹ºÍ½Ó¿Úº¯Êý£¬Ö÷ÒªÓÐËÄÀ๦ÄÜ£º¿Í»§¶ËÇý¶¯¹ÜÀí£¬USBÉ豸µÄÅäÖú͹ÜÀí£¬Ö÷»ú¿ØÖÆÆ÷µÄ¹ÜÀí£¬Ð­Òé¿ØÖÆÃüÁºÍÊý¾Ý´«ÊäµÄ¹ÜÀí¡£¾ßÌå´úÂëÖ÷Òª¼¯ÖÐÔÚ linux ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ