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

8¸ö¹¤×÷ʹÓöøÓÐȤµÄlinux½Å±¾

http://club.topsage.com/thread-1201128-1-1.html
ºÜ¶àÈ˶¼¶Ô¹ýÃüÁîÐÐÌáʾµÄÖØÒªÐÔ²»Ð¼Ò»¹Ë£¬ÉõÖÁÊÇÒ»µã¶¼²»¹ØÐÄ¡£µ«ÊÇÎÒÈ´Ò»µã¶¼²»ÕâôÈÏΪ£¬Ò»¸öºÃµÄÃüÁîÐÐÌáʾ¿ÉÒԸıäÄãʹÓÃÃüÁîµÄ·½Ê½¡£Îª´Ë£¬ÎÒÔÚinternetÉÏÕÒµ½Ò»Ð©·Ç³£ÊµÓã¬ÓÅÐ㣬²¢ÓÐȤµÄbashµÄÃüÁîÐÐÌáʾ¡£ÏÂÃæÎÒ½«ÎÒ×îϲ»¶Ê¹ÓõÄһЩÃüÁîÐÐÌáʾÂÞÁÐÈçÏ¡£
¡¡¡¡×¢Òâ  -  ҪʹÓÃÏÂÃæÕâЩÌáʾ£¬Äã¿ÉÒÔ¿½±´Õ³ÌùÕâЩÒÔ”PS1″´òÍ·µÄÄÚÈݵ½ÄãµÄÖÕ¶ËÉÏ£¬ÎªÁËʹÄãµÄ¸Ä±äÓÀ¾ÃÉúЧ£¬»¹Òª½«ÕâЩÄÚÈÝÕ³Ìùµ½ÄãʹÓÃÓû§µÄ~/.bashrcÎļþÖÐÈ¥¡£
¡¡¡¡1. Ôڳɹ¦Ö´ÐеÄÃüÁîÉÏÔö¼ÓÒ»¸öЦÁ³·ûºÅ
¡¡¡¡Õâ¸öÃüÁîÌáʾÐпÉÄÜÊÇÕâ¸öÃüÁîÐÐÌáʾÁбíÖÐ×îÓÐȤµÄÒ»¸ö£¬µ«ÊÇËüÒ²ÒÀÈ»ÓÐʹÓõļÛÖµ¡£Õâ¸öÌáʾµÄÏë·¨ÊÇ»ùÓÚµ±ÄãÃüÁî±»³É¹¦Ö´ÐУ¬Ä㽫»áµÃµ½Ò»¸öЦÁ³×÷ΪÄãµÄÃüÁîÐÐÌáʾ£¬Ò»µ©µÄÃüÁîÖ´ÐÐʧ°Ü£¬ÃüÁîÐÐÌáʾ½«»á»»³ÉÒ»¸ö¿ÞÁ³¡£
¡¡¡¡Àý×Ó£º
 
¡¡¡¡´úÂ룺
¡¡¡¡PS1=”\`if [ \$? = 0 ]; then echo \[\e[33m\]^_^\[\e[0m\]; else echo \[\e[31m\]O_O\[\e[0m\]; fi\`[\u@\h:\w]\\$ “
¡¡¡¡2.¸ü¸Äʧ°ÜÃüÁîµÄÑÕÉ«
¡¡¡¡ÏÂÃæÕâ¸öÃüÁîÐÐÌáʾÊÇÎÒ×îϲ»¶µÄÃüÁîÐÐÖ®Ò»¡£ºÍÉÏÒ»¸öÏàËÆ£¬Õâ¸öÃüÁîÐÐÌáʾµÄÑÕÉ«»áÔÚÄã×îºóÒ»¸öÃüÁîÔËÐÐʧ°Üºó¸Ä±ä£¬¶øÇÒÕâ¸öÃüÁîÐг¤Â·¾¶»áËõ¶ÌÊäÈëÃüÁîµÄ¿Õ¼ä£¬Õâ¸öÃüÁîÌáʾ»¹°üº¬ÁËbash ÿ¸öÀúÊ·ÃüÁîµÄÃüÁîºÅ£¬ÒÔ·½±ãÖØÐÂÌáÈ¡ÔËÐС£
¡¡¡¡Àý×Ó£º
 
¡¡¡¡´úÂ룺
¡¡¡¡PS1=”\[\033[0;33m\][\!]\`if [[ \$? = "0" ]]; then echo “\\[\\033[32m\\]“; else echo “\\[\\033[31m\\]“; fi\`[\u.\h: \`if [[ `pwd|wc -c|tr -d " "` > 18 ]]; then echo “\\W”; else echo “\\w”; fi\`]\$\[\033[0m\] “; echo -ne “\033]0;`hostname -s`:`pwd`\007″‘
¡¡¡¡3. ¶àÐÐÌáʾ
¡¡¡¡Èç¹ûÄãÊÇϲ»¶ÃüÁîÐÐÌáʾÖаüº¬ÍêÕûÐÅÏ¢µÄÄÇÒ»ÀàÈË£¬ÄÇôϱ߾ÍÓÐÒ»¸öÊʺÏÓÚÄãµÄÃüÁîÐÐÌáʾ¡£Õâ¸öÃüÁîÐÐÌáʾÐÅÏ¢Öаüº¬ÈÕÆÚ/ʱ¼ä£¬È«Â·¾¶£¬Óû§£¬Ö÷»ú£¬»î¶¯Öնˣ¬ÉõÖÁ°üº¬ÎļþÊýºÍÕ¼ÓÿռäµÈ¡£
¡¡¡¡Àý×Ó£º
 
¡¡¡¡´úÂ룺
¡¡¡¡PROMPT_COMMAND=’PS1=”\n\[\033[35m\]\$(/bin/date)\n\[\033[32m\]\w\n\[\033[1;31m\]\u@\h: \[\033[1;34m\]\$(/usr/bin/tty | /bin/sed -e ’s:/dev/::’): \[\033[1;36m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed ’s: ::g’)


Ïà¹ØÎĵµ£º

LinuxÇý¶¯ USB

USBÊÇ´ó¼Ò³£¼ûµÄ£¬É豸×ÜÏß¡£ Õâ¸öUSB·ÖΪÁ½¸ö²¿·Ö£ºÖ÷»ú£¬É豸¡£ ËûÊÇÒ»¸öÊ÷ÐεĹØϵ£º             Ö÷»ú
   É豸    É豸     É豸 Ö÷»úÀï×°µÄÊÇ£¬Ö÷»ú¿ØÖÆÆ÷£¬É豸ÖÐ×°µÄÊÇÉ豸¿ØÖÆÆ÷ Host Controller ......

LinuxÏÂÆô¶¯OracleÊý¾Ý¿â


[root@GISDB ~]$ su - oracle
[oracle@GISDB ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 13 11:03:03 2009
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
To ......

ÉîÈë·ÖÎöWindowsºÍLinux¶¯Ì¬¿âÓ¦ÓÃÒìͬ

ÕªÒª£º¶¯Ì¬Á´½Ó¿â¼¼ÊõʵÏÖºÍÉè¼Æ³ÌÐò³£Óõļ¼Êõ£¬ÔÚWindowsºÍLinuxϵͳÖж¼Óж¯Ì¬¿âµÄ¸ÅÄ²ÉÓö¯Ì¬¿â¿ÉÒÔÓÐЧµÄ¼õÉÙ³ÌÐò´óС£¬½ÚÊ¡¿Õ¼ä£¬Ìá¸ßЧÂÊ£¬Ôö¼Ó³ÌÐòµÄ¿ÉÀ©Õ¹ÐÔ£¬±ãÓÚÄ£¿é»¯¹ÜÀí¡£ µ«²»Í¬²Ù×÷ϵͳµÄ¶¯Ì¬¿âÓÉÓÚ¸ñʽ ²»Í¬£¬ÔÚÐèÒª²»Í¬²Ù×÷ϵͳµ÷ÓÃʱÐèÒª½øÐж¯Ì¬¿â³ÌÐòÒÆÖ²¡£±¾ÎÄ·ÖÎöºÍ±È½ÏÁËÁ½ÖÖ²Ù×÷ϵͳ¶¯Ì¬¿â¼¼Ê ......

Linux¿éÉ豸Çý¶¯(2) ¿éÇý¶¯ÖÐÏà¹ØÏà¹ØÄ£¿éÄ£°å


1.¿éÉ豸Çý¶¯µÄÄ£¿é¼ÓÔØÓëжÔØ
1)¿éÉ豸Çý¶¯µÄÄ£¿é¼ÓÔØÍê³ÉµÄ¹¤×÷ÈçÏÂ:
Ø ·ÖÅä,³õʼ»¯ÇëÇó¶ÓÁÐ,°ó¶¨ÇëÇó¶ÓÁкÍÇëÇóº¯Êý
Ø ·ÖÅä,³õʼ»¯gendisk,¸øgendiskµÄmajor,fops,queueµÈ³ÉÔ±¸³Öµ,×îºóÌí¼Ógendisk.
Ø ×¢²á¿éÉ豸Çý¶¯.
´úÂë1:ʹÓÃblk_alloc_queueº¯ÊýÍê³É¿éÉ豸Çý¶¯µÄÄ£¿é¼Ó ......

secureCRTÁ¬½ÓLinux³ö´í

ÓÃsecureCRTÁ¬½ÓLinuxʱ³öÏÖÈçÏ´íÎó£ºThe remote system refused the connection.
1¡¢²éѯsshd¹¤×÷״̬
#service sshd status
ÏÔʾstop
2¡¢ÔËÐÐ#service sshd restart
ÏÔʾPermissions 0777 for '/etc/ssh/ssh_host_rsa_key' are too openµÈһЩȨÏÞ´íÎó
3¡¢ÐÞ¸Ä/etc/sshϵÄÃÜԿȨÏÞ
#chmod 600 sshd_config
#chm ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ