Linux³£ÓÃÃüÁî
su
suÃüÁîÊÇ×î»ù±¾µÄÃüÁîÖ®Ò»£¬³£ÓÃÓÚ²»Í¬Óû§¼äÇл»¡£ÀýÈ磬Èç¹ûµÇ¼Ϊ user1£¬ÒªÇл»Îªuser2£¬Ö»ÒªÓÃÈçÏÂÃüÁ
$su user2
È»ºóϵͳÌáʾÊäÈëuser2¿ÚÁÊäÈëÕýÈ·µÄ¿ÚÁîÖ®ºó¾Í¿ÉÒÔÇл»µ½user2¡£Íê³ÉÖ®ºó¾Í¿ÉÒÔÓÃexitÃüÁî·µ»Øµ½user1¡£
suÃüÁîµÄ³£¼ûÓ÷¨ÊDZä³É¸ùÓû§»ò³¬¼¶Óû§¡£Èç¹û·¢³ö²»´øÓû§ÃûµÄsuÃüÁî £¬ÔòϵͳÌáʾÊäÈë¸ù¿ÚÁÊäÈëÖ®ºóÔò¿ÉÇл»Îª¸ùÓû§¡£
Èç¹ûµÇ¼Ϊ¸ùÓû§£¬Ôò¿ÉÒÔÓÃsuÃüÁî³ÉΪϵͳÉÏÈκÎÓû§¶ø²»ÐèÒª¿ÚÁî¡£
pwd
pwdÃüÁîÒ²ÊÇ×î³£ÓÃ×î»ù±¾µÄÃüÁîÖ®Ò»£¬ÓÃÓÚÏÔʾÓû§µ±Ç°ËùÔÚµÄĿ¼¡£
cd
cdÃüÁî²»½öÏÔʾµ±Ç°×´Ì¬£¬»¹¸Ä±äµ±Ç°×´Ì¬£¬ËüµÄÓ÷¢¸údosϵÄcdÃüÁî»ù±¾Ò»Ö¡£
cd ..¿É½øÈëÉÏÒ»²ãĿ¼
cd -¿É½øÈëÉÏÒ»¸ö½øÈëµÄĿ¼
cd ~¿É½øÈëÓû§µÄhomeĿ¼
ls
lsÃüÁî¸údosϵÄdirÃüÁîÒ»Ñù£¬ÓÃÓÚÏÔʾµ±Ç°Ä¿Â¼µÄÄÚÈÝ¡£
Èç¹ûÏëÈ¡µÃÏêϸµÄÐÅÏ¢£¬¿ÉÓÃls -lÃüÁ ÕâÑù¾Í¿ÉÒÔÏÔʾĿ¼ÄÚÈݵÄÏêϸÐÅÏ¢¡£
Èç¹ûĿ¼ÏµÄÎļþÌ«¶à£¬ÓÃÒ»ÆÁÏÔʾ²»ÁË£¬¿ÉÒÔÓÃls -l |more·ÖÆÁÏÔʾ ¡£
find
findÃüÁîÓÃÓÚ²éÕÒÎļþ¡£Õâ¸öÃüÁî¿ÉÒÔ°´ÎļþÃû¡¢½¨Á¢»òÐÞ¸ÄÈÕÆÚ¡¢ËùÓÐÕß(ͨ³£Êǽ¨Á¢ÎļþµÄÓû§)¡¢Îļþ³¤¶È»òÎļþÀàÐͽøÐÐËÑË÷¡£
findÃüÁîµÄ»ù±¾½á¹¹ÈçÏ£º
$find
ÆäÖÐÖ¸¶¨´ÓÄĸöĿ¼¿ªÊ¼ËÑË÷¡£Ö¸¶¨ËÑË÷Ìõ¼þ¡£±íʾÕÒµ½ÎļþÔõô´¦Àí¡£Ò»°ãÀ´Ëµ£¬ÒªÓÃ-print¶¯×÷£¬ÏÔʾ Õû¸öÎļþ·¾¶ºÍÃû³Æ¡£Èç¹ûûÓÐÕâ¸ö¶¯×÷£¬ÔòfindÃüÁî½øÐÐËùÒªËÑË÷¶ø²»ÏÔʾ½á¹û£¬µÈÓڰ׷Ѿ¢¡£
ÀýÈ磬ҪËÑË÷ϵͳÉÏËùÓÐÃû³ÆΪyeµÄÎļþ£¬¿ÉÓÃÈçÏÂÃüÁ
$find / -name ye -print
ÕâÑù¾Í¿ÉÒÔÏÔʾ³öϵͳÉÏËùÓÐÃû³ÆΪyeµÄÎļþ¡£
tar
tar×î³õÓÃÓÚ½¨Á¢´Å´ø±¸·Ýϵͳ£¬Ä¿Ç°¹ã·ºÓÃÓÚ½¨Á¢Îļþ·¢²¼µµ°¸¡£¿ÉÓÃÈçÏ·½·¨½¨Á¢tarµµ°¸£º
$tar cvf
ÀýÈ磬Èç¹ûÒª½«µ±Ç°Ä¿Â¼ÖÐËùÓÐÎļþ´æµµµ½ye.tarÖУ¬¿ÉÓÃÈçÏÂÃüÁ
$tar cvf ye.tar *.*
Òªä¯ÀÀµµ°¸ÄÚÈÝ£¬½«cÑ¡Ïî±ä³Ét¡£Èç¹ûÒªä¯ÀÀye.tarµµ°¸ÖеÄÄÚÈÝ£¬¿ÉÓÃÈçÏÂÃüÁ
$tar tvf ye.tar
Ҫȡ³öµµ°¸ÄÚµÄÄÚÈÝ£¬½«cÑ¡Ïî±ä³Éx¡£Èç¹ûÒª½«ye.tarµµ°¸ÖеÄÄÚÈÝÈ¡µ½µ±Ç°Ä¿Â¼ÖУ¬¿ÉÓÃÈçÏÂÃüÁ
$tar xvf ye.tar
gzip
gzipÃüÁîÓÃÓÚѹËõÎļþ¡£ ÀýÈ磬Èç¹ûÒª½«ye.txtÎļþѹËõ£¬¿ÉÓÃÈçÏÂÃüÁ
$gzip ye.txt
ÕâÑù¾Í¿ÉÒÔѹËõÎļþ²¢ÔÚÎļþÃûºóÃæ¼ÓÉÏgzÀ©Õ¹Ãû£¬±ä³ÉÎļþye.txt.gz¡£
½âѹËõÎļþ¿ÉÓÃgzip -dÃüÁîʵÏÖ£º
$gzip -d ye.txt.gz
ÕâÑù¾Í¿ÉÒÔ½âѹËõÎļþ²¢É¾³ýgzÀ©Õ¹Ãû¡£³ý´ËÖ®Í⻹¿ÉÒÔÓÃgunzipÃüÁîÀ´
Ïà¹ØÎĵµ£º
±¾ÎÄÕª×Ô http://hi.baidu.com/yuhongchun027/blog/item/2ac559517ec1f5898c543002.html
LinuxÖÐtty pty pts ¸ÅÄîÇø±ð
»ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òÕßteletypewriters£¬ÔÀ´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅÌÓëÏÔʾÆ÷È¡´ú£¬Ëù ......
²ËÄñ¾ÍÊDzËÄñ£¬Ê²Ã´ÎÊÌⶼÄÜÓöµ½°¡¡£¡£¸ÕÏëѧϰÏÂlinux ¾ÍÓöµ½ÕâÖְ׳ÕÎÊÌ⣬°Ù¶ÈÏ »¹ÊÇÓнáÂÛµÄÂ𡣺ǺÇ
ÒÔÏÂΪ²ÎÕյĽâ¾ö·½°¸£º
¿ÉÒÔÒÔµ¥Ò»Ê¹ÓÃÕßµÄģʽµÇÈ룬ȻºóÔÙ½¨Á¢Ò»¸öеÄrootÃÜÂë¡£
Òª½øÈ뵥һʹÓÃÕßģʽ£¬ÇëÏÈÖØÐÂÆð¶¯ÄúµÄµçÄÔ£¬¼ÙÈçÄúʹÓÃÔ¤µ÷µÄ¿ª¹Ø¹ÜÀí³ÌʽGRUB£¬Äú¿ÉÒÔÖ´ÐÐÏÂÁеĶ¯×÷À´½øÈ뵥һʹÓÃÕßÄ£Ê ......
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jdk-1_5_0_02-linux-i586.rpm.bin
´Ëʱ»áÉú³ÉÎļþjdk-1_5_0_02-linux-i586.rpm£¬
ͬÑù¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm
-------------ÍøÉϲ鵽£¬Òª½øÐÐÏÂÃæÒ»²½£¬ÎÒÔÙ./jdkʱºò¾ÍÒѾ³öÏÖÐÒéÁË£¬Ò²¾ÍÊÇÒ ......
Òýµ¼£º
ÈçÐè»ñµÃ¶Ô vmlinux ºÍ zimage Ö®¼äÇø±ðµÄ¼«ºÃ½âÊÍ£¬ÇëÔÚ Alessandro Rubini ±àдµÄ“Kernel Configuration: dealing with the unexpected£¨Linux Magazine£©µÄÒ»ÎÄÖÐÕÒµ½“Booting your kernel”Ò»½Ú¡£
ÓйØÄںˡ¢Ó³ÏñºÍÒýµ¼¹ý³ÌµÄ¸ü¶àÐÅÏ¢£¬ÇëÔĶÁÖÐÑëÀ¥Ê¿À¼´óѧ£¨Central Queensland Universit ......