1.¡¡console¶¥²¿ÏÔʾÏÖÔÚʱ¼ä£ºÔÚ/etc/bashrc»ò~/.bashrcÖмÓÈë»·¾³±äÁ¿PROMPT_COMMAND¡£
¡¡¡¡export¡¡PROMPT_COMMAND='echo¡¡-ne
¡¡¡¡"\0337\033[2;999r\033[1;1H\033[00;44m\033[K"`date`"\033[00m\0338"'
2.¡¡Ê¹Óöà´ï23¸öµÄÐéÄâÖնˣ¨VT£©£¬¼ÙÉèÄãÏÖÔÚÓÐ6¸ö£¬·ÂÕÕ/etc/inittabÖÖµÄÎļþ£¬¼ÓÈë¡¡
¡¡¡¡8:234:respawn:/sbin/getty¡¡38400¡¡tty8¡¡
¡¡¡¡24:234:respawn:/sbin/getty¡¡38400¡¡tty24¡¡
¡¡¡¡ÒªÌø¹ýVT7£¬ÒòΪXʹÓÃÕâ¸öÖնˡ£È»ºótelinit¡¡qÒÔÖØмÓÔØÅäÖÃÎļþ¡£Ê¹ÓÃ×óAlt+FnÔÚ1-6ºÍ8-12¼þÇл»£¬Ê¹ÓÃÓÒAlt+Fn¼üÔÚ13-24Ö®¼äÇл»¡£
3.¡¡ConsoleÇл»£º×óAlt-·½Ïò¼ü£¬Ñ»·Çл»console¡£Ð§¹ûºÍAlt+FnÒ»Ñù¡£
4.¡¡¼òµ¥µÄ½øÐÐDosתUnix£ºÈç¹ûÄãµÄÎı¾ÎļþÖÐÿÐнáβ¶¼ÓÐÌÖÑáµÄCtrl-MµÄ»°£¬Ê¹ÓÃÕâ¾äÃüÁîÄܹ»¿ìËٵĽâ¾öÎÊÌâ¡¡sed¡¡'s/^M//'¡¡filename¡¡>newfilename¡¡
5.¡¡¿ìËÙ½¨Á¢MP3²¥·ÅÁÐ±í£ºfind¡¡/mnt/cdrom¡¡-name¡¡*.mp3¡¡-print¡¡>>cd1.play.list.ÕâÑù¾Í»á°ÑCDRomÖеÄËùÓÐMP3Îļþ½¨Á¢Ò»¸öÃûΪcd1.play.listµÄÎļþ¡£È»ºóʹÓÃxmms¡¡»ò¡¡x11amp¾ÍÄܽøÐв¥·ÅÁË¡£
6.¡¡/procÖеÄÖØÒªÐÅÏ¢¡¡
¡¡¡¡cat¡¡/proc/cpuinfo¡¡-¡¡CPU¡¡(i.e.¡¡vendor,¡¡Mhz,¡¡flags¡¡like¡¡mmx)¡¡
¡¡¡¡cat¡¡/proc/interrupts¡¡-¡¡Öжϡ¡
¡¡¡¡cat¡¡/proc/ioports¡¡-¡¡É豸IO¶Ë¿Ú¡¡
¡¡¡¡cat¡¡/proc/meminfo¡¡-¡¡ÄÚ´æÐÅÏ¢(i.e.¡¡mem¡¡used,¡¡free,¡¡swap¡¡size)¡¡
¡¡¡¡cat¡¡/proc/partitions¡¡-¡¡ËùÓÐÉ豸µÄËùÓзÖÇø¡¡
¡¡¡¡cat¡¡/proc/pci¡¡-¡¡PCIÉ豸µÄÐÅÏ¢¡¡
¡¡¡¡cat¡¡/proc/swaps¡¡-¡¡ËùÓÐSwap·ÖÇøµÄÐÅÏ¢¡¡
¡¡¡¡cat¡¡/proc/version¡¡-¡¡LinuxµÄ°æ±¾ºÅ¡¡
7.¡¡ÕæÕýµÄConsole½çÃ棺˵ʵ»°ÎÞÂÛÊÇKDEºÍGNomeÎÒ¶¼Ã»Ê²Ã´Ï²»¶µÄ£¬±Ï¾¹ÊÜWindowsѬÌÕÁËÕâô³¤Ê±¼äÁË¡£µ«ÊÇÔÚConsoleÏÂÆäʵ²ÅÊÇÕæÕýµÄCool½çÃ档ʹÓÃSVGATextMode¿ÉÒÔÈÃÄãµÄÃüÁîÐнçÃæ´ïµ½132x60(±ê×¼ÊÇ80x25)¡£ÎÒµÄ486£¨Trident9440£©ÉÏʹÓõÄÊÇ132x43£¬ÄÇÃÜÃÜÂéÂéµÄ×Ö·ûÕæÏóHollywoodµÄ¼¸ÄêÇ°µÄµçÓ°£¨ÏÖÔÚÁ¬µçÓ°ÀﶼÊÇWindowsÁË£©¸øÈ˸оõÉñÃØÙâÙâµÄ¡£ÅäÖÃÎļþÔÚ/etc/TextConfigÖУ¬²»¹ýÈç¹ûÄãµÄXWindow¶¼ÎÞ·¨Õý³£ÏÔʾµÄ»°£¬ÄǹÀ¼ÆÕâÒ²Óò»ÁËÁË£¨±Ï¾¹ÊǺü¸ÄêÇ°µÄ¶«Î÷ÁË£©¡£
8.¡¡ÈÃÄãµÄÓ²ÅÌ·ÉÆðÀ´:¡¡LinuxÏÂÒ²¿ÉÒÔʹÓÃ32Bit¡¡I/OºÍDMA¡£Ê¹ÓÃ/sbin/hdparm¡¡-c1¡¡/dev/hda(hdb,hdc..)´ò¿ª32Bit´«Êäģʽ£¬Ê¹ÓÃÃüÁî/sbin/hdparm¡¡-d1¡¡/dev/hda(hdb,hdc...)¡¡´ò¿ªDMA¡£×îºóʹÓÃ/sbin/hdparm¡¡-k1¡¡/dev/hda¡¡ÒÔʹӲÅÌÔÚResetÖ®ºó±£³ÖÉÏÃæµÄÉ趨£¬ÕâôһÀ´£¬Ó²Å̶ÁдËÙ¶ÈÓ¦¸Ã¿ÉÒÔÌá¸ßÒ»±¶ÒÔÉÏ¡£¡¡
9.¡¡Î¢µ÷ÄãµÄExt2:¡¡LinuxϵÄÃüÁîtune2fs¿ÉÒÔÉ趨×î´óMount´ÎÊý(ÒòΪLinux¼´Ê±ÔÚmounted¡¡clean×´¿öÏ£¬´ïµ½Ò»¶¨µÄmount´ÎÊýºó£¬»áÇ¿ÖÆe2fsck¶ÔÓÚÎÒÕâÑùµÄÿÌ쿪¹Ø»úµÄÀ´ËµºÜ²»·½±ã)£¬tune2fsÃüÁîµÄÆäËûÓÃ;Çë²Î¼ûman¡£¡¡
10.¡¡½ûÖ¹ÔÚNetscapeÖÐÏÔʾÉÁ˸£¨Blink£©Tag:¡¡~/.XdefaultsÖÐÐÞ¸ÄNetscape*blinkingEnabled:¡¡False¡¡Ö®ºóÔËÐС¡xrdb¡¡-Load¡¡~/.Xdefaults
11.¡¡Ëæʱ¸Ä±äXTermµÄ×ÖÌå´óС:shift¼Ó+/-¡¡
12.¡¡Ext2µÄÎļþÊôÐÔ:¡¡lsattrÁгöÊôÐÔ£¬chattr¿ÉÒԸıäÊôÐÔ¡£Èç¡¡chattr¡¡+A¡¡¡¡¡¡filename¡¡Ôòϵͳ²»»áÐÞ¸ÄÆälast¡¡access¡¡timeÊôÐÔ£»chattr¡¡+i¡¡Ôò¿ÉÒÔ¡¡¡¡±ÜÃâ±»rmµô¡£¡¡
13.¡¡SIS6326ÏÔ¿¨µÄÅäÖãºÔÚDeviceÖмÓÈ룺DacSpeed¡¡110¡¡Option"no_bitblt"¡¡Option¡¡"sw_cursor"¡¡
14.¡¡Ê¹ÓÃstrings¿ÉÒÔ°Ñ×Ö·û´®´ÓBinaryÎļþÖзÖÀë³öÀ´¡£
15.¡¡Äã´ó¸ÅÒѾϰ¹ßÁËʹÓÃTopÀ´¹Û²ìϵͳʹÓÃÇé¿ö£¬ÄǾÍÊÔÒ»ÊÔʹÓÃVstat1À´¿´¿´cpuµÄ¿ÕÏг̶ȣ¨ÏÔʾ½á¹ûµÄ×îºóÒ»Ï¡£¡¡
16.¡¡Ê¹ÓÃWatchÃüÁ·´¸´Ö´ÐÐÌض¨ÃüÁÈç"watch¡¡ls¡¡-l¡¡/tmp/blah"£¬½«Ò»Ö±¹Û²ìÎļþµÄ´óС¸Ä±ä¡£¡¡
17.¡¡Ê¹ÓÃpppstatsµÃµ½pppÁ¬½ÓµÄÊý¾Ý¡£¡¡
18.¡¡ÏÔʾԶ³Ì»úÆ÷µÄNFS:¡¡showmount¡¡-e¡¡hostname¡¡
19.¡¡Ê¹ÓÃautofsÃâÈ¥Äãÿ´ÎmountºÍumountÖ®¿à,ÔÙRedHat6.0ÖдøÁËautofsµÄrpm,Ö»Òª°²×°ºÃÖ®ºó±ã¿ÉÒÔÏíÊÜ×Ô¶¯¼ÓÔØÎļþϵͳµÄ·½±ã¡£¡¡ÔÚ/miscĿ¼Ï£¬´´½¨Ò»¸öcdĿ¼£¬Èç¹ûʹÓÃÆä×Ô´øµÄauto.miscºÍauto.masterµÄ»°£¬ÂíÉϾͿÉÒÔʵÏÖ×Ô¶¯¼ÓÔع¦ÄÜÁË¡£¡¡
20.¡¡ÔÚBash¡¡ShellÖУ¬¿ÉÒÔÓã¡Öظ´Éϼ¸´ÎÊäÈë¹ýµÄÃüÁÕâÑù¾Í¿ÉÒÔÊ¡È¥ÍùÉϹö¶¯µÄÂé·³ÁË¡£Ê¹ÓÃctl+R¿ÉÒÔ»¥¶¯µÄ¼ìË÷ÒÔǰʹÓùýµÄÃüÁîÐС£¡¡
21.¡¡Ê¹ÓÃcd¡¡-ÔÚÉÏÁ½¸öcd¡¡/directory/²Ù×÷ÖÐÇл»¡£ÈçÏÈÊÇcd¡¡/home/foo½Ó×ÅÊÇ¡¡cd¡¡/home/maisonÔò½Ó×Å´òcd¡¡-¡¡»á½øÈë¡¡/home/fooÔÙ´òcd¡¡-¡¡»á½øÈë/home/maison¡£¡¡
22.¡¡BashÖеĿì½Ý¼ü£ºESCAPE-B¡¡»áÏòÇ°ÌøÒ»¸öµ¥´Ê£¬Ctrl-K»áɾ³ý´Ó¹â±êµ½ÐÐÄ©ËùÓÐ×Ö·û¡£¡¡
23.¡¡ÔÚPSÃüÁîÖÐʹÓÃgrep£¬Àý£ºps¡¡auxw¡¡|¡¡grep¡¡gpm¡¡»áÁгöËùÓк¬ÓÐgpm×Ö·ûµÄ½ø³Ì¡£¡¡
24.¡¡ÔÚͬһ¸öÃüÁîÐÐÉÏͬʱִÐжàÌõÃüÁÓ÷ֺŷָô¡£Èç±àÒëÒ»¸öÔ´Îļþ£º¡¡¡¡type¡¡./configure¡¡;¡¡make¡¡;¡¡make¡¡install¡¡¡£Ö®ºóÄã¾Í¿ÉÒÔȥɢ²½ÁË£¨¡¡¡¡²»ÒªÔÚµçÄÔÇ°»¨·ÑÁËÌ«¶àʱ¼äÁË£¬Éú»îÖл¹ÓкܶàÃÀºÃµÄ¶«Î÷¡££©¡¡
25.¡¡°ÑÔËÐнá¹ûÊä³öµ½Ò»¸öÎļþÖУ¬Èç¡¡ls¡¡-l¡¡>¡¡foo.file¡£¡¡
26.¡¡Ê¹ÓÃTopÃüÁî¼àÊÓϵͳ״¿ö£¬ÄÚ´æʹÓÃÇé¿ö£¬¿ª»úʱ¼ä£¬½ø³Ì×´¿ö£¬Ã¿¸öÓû§µÄʹÓÃÇé¿öµÈµÈ¡£Ê¹ÓÃSÃüÁî¿ÉÒԸıäÆäˢеÄʱ¼ä£ºÈç.5½«»áʹÆäÿ°ëÃëÖÓ¸üÐÂÒ»´Î¡£¡¡
27.¡¡Í¬Ê±Unzip¶à¸öÎļþ,unzip¡¡*²»ÕýÈ·£¬¶øÊÇunzip¡¡"*"¡£¡¡
28.¡¡½¨Á¢·ûºÅÁ¬½á£¬Õâ´ó¸ÅÊÇ×îÓÐÓõŦÄÜÁË£¬ln¡¡-s¡¡real-file¡¡symbolic-file£¬ÎÞÂÛÊÇÉ豸£¬Îĵµ»¹Êǽű¾³ÌÐò¡£¡¡
29.¡¡¸Ä±äÏÔʾµÄµ¥Î»,Èçdu¡¡-hm¡¡½«ÒÔMΪµ¥Î»Êä³ö½á¹û£¬Í¬ÑùµÄdu¡¡-hkÔòÒÔKΪµ¥Î»Êä³ö¡£¡¡
30.¡¡×Ô¶¯Logoff,ÔÚ~/.bashrcÖмÓÈëÕâôһ¾ä»°£ºTMOUT=300Ôò»áÔÚ5·ÖÖÓÖ®ºólogoff,²»¹ýÈç¹ûlessÕâÀà³ÌÐòÔËÐÐÔò²»»áÆô¶¯¡£¡¡
31.¡¡ÔÚʹÓÃless¡¡»ò¡¡moreʱ£¬Ö±½ÓÆô¶¯±à¼Æ÷£ºÔÚlessÖдòÈëv¼ü£¬»áÁ¢¼´Æô¶¯vi»òÆäËûÄãÔÚ»·¾³±äÁ¿ÖÐÖ¸Ã÷µÄ±à¼Æ÷£¬µ«ÊÇmoreÖ»ÄÜʹÓÃvi¡£
zuogongyu ÓÚ 2006-01-26 15:24:02·¢±í:
¶à¶àÊܽÌÁË