LinuxÃüÁîÐÐÌáʾ·ûÉèÖÃ
Ìáʾ·ûͨ¹ý±äÁ¿PS1À´ÉèÖ㬿ÉÒÔÓÃÒÔÏÂÃüÁîÀ´ÏÔʾµ±Ç°ÉèÖãº
echo $PS1
Ìáʾ·ûµÄϵͳ·¶Î§£¨¶ÔϵͳÀïËùÓÐÓû§ÓÐЧ£©µÄÉ趨ÔÚÎļþ /etc/bashrcÀ¿ÉÄÜ°üº¬ÒÔϵÄÐУº
PS=“[\u@\h \W]\$"
Òª¶¨ÖÆÌáʾ·û£¬ÎÒÃÇ¿ÉÒÔ±à¼Îļþ /etc/bashrc £¨rootÓû§£©È»ºóÔÚÁ½¸öÒýºÅÖ®ÄÚÊäÈëÈκÎÄãÏëÒªµÄÎı¾¡£
½«[\u@\h \W]\\$ÐÞ¸ÄΪ[\u@\h] \w >
ÒÔÏÂÊÇ¿ÉÄÜ»áÓõ½µÄÌرð´úÂ룺
\u - µ±Ç°Óû§Ãû£¨ =$LOGNAME)
\h - ÔËÐÐshellµÄ¼ÆËã»úÃû£¨hostname)
\H - ÍêÕûµÄ¼ÆËã»úÃû
\W - µ±Ç°µÄ¹¤×÷Ŀ¼Ãû
\w - µ±Ç°¹¤×÷Ŀ¼ȫ·¾¶Ãû
\$ - ¶ÔÓÚÆÕͨÓû§ÏÔʾ$£¬¶ÔÓÚ³¬¼¶Óû§ÏÔʾ#
\! - µ±Ç°ÃüÁîµÄÀúÊ·±àºÅ
\# - µ±Ç°ÃüÁî±àºÅ£¨ÔÚµ±Ç°µÄshellÏÂÔËÐеÄÃüÁ
\d - µ±Ç°ÈÕÆÚ
\t - µ±Ç°Ê±¼ä£¨24СʱÖÆ£©
\T - µ±Ç°Ê±¼ä£¨12СʱÖÆ £¬bash 2.0ÓÐЧ
\@ - µ±Ç°Ê±¼ä£¨AM/PM¸ñʽ£©£¬bash 2.0 ÓÐЧ
\s - shellµÄÀàÐÍ
\a - ¸æ¾¯µÄÉùÒô
\j - Óû§µÄÈÎÎñÊý
\n - ÐÂÐÐ
\\ - ·´Ð±¸Ü
\[ - ²»¿É´òÓ¡×Ö·û¿ªÊ¼±êÖ¾
\] - ²»¿É´òÓ¡×Ö·û½áÊø±êÖ¾
\nnn - ASCII×Ö·û¶ÔÓ¦°Ë½øÖÆÊýÖµ
$(date) - dateÃüÁÊä³öµ±Ç°ÈÕÆÚ£©»òÕßÆäËüµÄÃüÁîÊä³ö¡£
Ïà¹ØÎĵµ£º
Ç°ÑÔ£ºÎÒ¾õµÃÎÒµÄÎÄÕÂÏà¶ÔÀ´Ëµ¶¼ÊDZȽÏdzÏԵġ£Ò»Ð©³õѧÕß¿ÉÒÔ¿´¿´£¬¶ÔÓÚ¸ßÊÖÀ´Ëµ£¬Èç¹ûÄãÃDz»ÁßØÄʱ¼äµÄ»°£¬Ï£ÍûÒ²ÄÜ°ïÎÒ¿´¿´£¬Ö¸µãÒ»ÏÂÆäÖеĴíÎó¡£ÕâÒ²ÊÇÎÒµ½ÕâÀïÀ´ºÍ´ó¼Ò½»Á÷µÄÄ¿µÄ¡£
ÔĶÁLinuxÄÚºËÆô¶¯´úÂëµÄÖ±½Ó¶¯Á¦ÊÇÎÒÏë±àдRTL8019ASµÄÍø¿¨Çý¶¯³ÌÐò£¨2.4.18ÄÚºËÖ»Ö§³ÖÁËCS8900A£©¡£¼ÈȻҪдÇý¶¯£¬ÎÒ¾ÍÏëÖªµÀËüÊÇÔ ......
1¡¢LINUXϵͳÆô¶¯¼¶±ð
²é¿´/etc/inittabÎļþ£¬ÆäÖ÷ÒªÄÚÈÝÈçÏ£º
#
0
-
halt (Do NOT set initdefault to
this
)
#
1
-
Single user mode
#
2
-
Multiuser, without NFS ......
ÔÚLinuxϵͳÖУ¬ÖÕ¶ËÉ豸·Ç³£ÖØÒª£¬Ã»ÓÐÖÕ¶ËÉ豸£¬ÏµÍ³½«ÎÞ·¨ÏòÓû§·´À¡ÐÅÏ¢£¬LinuxÖаüº¬¿ØÖÆ̨¡¢´®¿ÚºÍαÖÕ¶Ë3ÀàÖÕ¶ËÉ豸¡£
14.1ÖÕ¶ËÉ豸
ÔÚLinuxϵͳÖУ¬ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËüÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò³Æ¸÷ÖÖÀàÐ͵ÄÖÕ¶ËÉ豸¡£ttyÊÇTeletypeµÄËõд£¬TeletypeÊÇ×îÔç³öÏÖµÄÒ»ÖÖÖÕ¶ËÉ豸£¬ ......
Ò»¡¢ÔÚUnix/LinuxÉÏÁîJVMÖ§³ÖÖÐÎÄÊä³ö
Èç¹ûÓû§Ê¹ÓõÄÊÇUNIXµÄÔ¶³Ì·þÎñÆ÷£¬¾Í»áÓöµ½ÖÐÎÄ×ÖÌåÔÚͼÏñÖÐÊä³öµÄÎÊÌ⣬ÌرðÊÇÓÉÓÚÐí¶à¹ÜÀíÔ±²¢²»Ï²»¶°ÑÖ÷»úµÄlocale¶¨Îªzh(ÒòΪÒâζ×Å¿ÉÄܳöÂÒÂë»ò±ØÐëװ΢ÐÎͼÐÎÖÕ¶ËÏózhcon£¬µ«ºÜ¶àÇé¿öÏÂÕâÑùµÄÌõ¼þ²¢²»¾ß±¸)¡£´ó²¿·Ö³ÌÐòÔ±µÄJAVA¾Ñ鹶ÏÞÓÚJSP½Å±¾³ÌÐò£¬²¿·ÖÊìÁ·µÄ³ÌÐòÔ±´ó¸Å¿ ......