LinuxÖÕ¶ËÌáʾ·ûPS1ÉèÖã¨ÑÕÉ«£©
\d £º´ú±íÈÕÆÚ£¬¸ñʽΪweekday month date£¬ÀýÈ磺"Mon Aug 1"
\H £ºÍêÕûµÄÖ÷»úÃû³Æ¡£ÀýÈ磺ÎҵĻúÆ÷Ãû³ÆÎª£ºfc4.linux£¬ÔòÕâ¸öÃû³Æ¾ÍÊÇfc4.linux
\h £º½öÈ¡Ö÷»úµÄµÚÒ»¸öÃû×Ö£¬ÈçÉÏÀý£¬ÔòΪfc4£¬.linuxÔò±»Ê¡ÂÔ
\t £ºÏÔʾʱ¼äΪ24Сʱ¸ñʽ£¬È磺HH£ºMM£ºSS
\T £ºÏÔʾʱ¼äΪ12Сʱ¸ñʽ
\A £ºÏÔʾʱ¼äΪ24Сʱ¸ñʽ£ºHH£ºMM
\u £ºµ±Ç°Óû§µÄÕ˺ÅÃû³Æ
\v £ºBASHµÄ°æ±¾ÐÅÏ¢
\w £ºÍêÕûµÄ¹¤×÷Ŀ¼Ãû³Æ¡£¼ÒĿ¼»áÒÔ ~´úÌæ
\W £ºÀûÓÃbasenameÈ¡µÃ¹¤×÷Ŀ¼Ãû³Æ£¬ËùÒÔÖ»»áÁгö×îºóÒ»¸öĿ¼
\# £ºÏ´ïµÄµÚ¼¸¸öÃüÁî
\$ £ºÌáʾ×Ö·û£¬Èç¹ûÊÇrootʱ£¬Ìáʾ·ûΪ£º# £¬ÆÕͨÓû§ÔòΪ£º$
CentOSÖйØÓÚÕâЩ£º
\a an ASCII bell character (07)
\d the date in "Weekday Month Date" format (e.g., "Tue May
26")
\D{format} the format is passed to strftime(3) and the result is
inserted into the prompt string; an empty format results in a
locale-specific time representation. The braces are required
\e an ASCII escape character (033)
\h the hostname up to the first ‘.’
\H the hostname
\j the number of jobs currently managed by the shell
\l the basename of the shell’s terminal device name
\n newline
\r carriage return
\s the name of the shell, the basename of $0 (the portion
following the final slash)
\t the current time in 24-hour HH:MM:SS format
\T the current time in 12-hour HH:MM:SS format
\@ the current time in 12-hour am/pm format
\A the current time in
Ïà¹ØÎĵµ£º
1. °²×°apache2, lxr, glimpse
$ sudo apt-get install apache2
$ sudo apt-get install lxr
ÏÂÔØglimpse
°²×°glimpse:
$ ./configure
$ make
$ sudo make install
2. ÅäÖÃlxr
$ sudo vim /usr/share/lxr/http/lxr.conf
ÐÞ¸ÄΪ£ºbaseurl:http://localhost/lxr/http
&n ......
ºìÆì×ÀÃæLinux4.1ϰ²×°ºÍÅäÖÃJSP·þÎñÆ÷È«¹¥ÂÔ
ÕâÁ½ÌìÊÔ×ÅÔÚºìÆìLinux×ÀÃæ°æ4.1ϰ²×°WEB·þÎñÆ÷£¬Òѳɹ¦°²×°£¬ÏÖ°ÑÎҵݲװ¹ý³Ì½éÉÜÈçÏ£¬ÒÔ¸øÓÐÏàËÆÐèÇóµÄÍøÓѲο¼¡£
ÎҵݲװҪÇóÊÇÖ§³ÖJSP¡¢html¡¢htmÍøÒ³£¬ËùÒÔÑ¡ÓÃJDK1.5.0+Tomcat5.5.4+mySQL4.1.7£¬ÕâЩ¶¼Êǵ±Ç°¸÷Èí¼þ×îеÄÎȶ¨°æ±¾£¨·Ç²âÊ԰棩¡£ÔÝûÓа²×°Apacheº ......
1.µÇ¼£º mysql -uroot -p
2.LinuxÏÂmysql ²»ÄÜÍâÍø·ÃÎÊ
ÒѾÔÚMYSQLÀïgrantÁËȨÏÞÁË¡£ÔÚÍâÍø»¹ÊDz»ÄÜ·ÃÎÊ .
ÎÊÌ⣺
cat /etc/mysql/my.conf
ÕÒµ½ÏÂÃæÒ»ÐÐ
bind-address = 127.0.0.1
Î ......
sock_rawÔʼÌ×½Ó×Ö±à³Ì¿ÉÒÔ½ÓÊÕµ½±¾»úÍø¿¨ÉϵÄÊý¾ÝÖ¡»òÕßÊý¾Ý°ü,¶ÔÓë¼àÌýÍøÂçµÄÁ÷Á¿ºÍ·ÖÎöÊǺÜÓÐ×÷ÓõÄ.Ò»¹²¿ÉÒÔÓÐ3ÖÖ·½Ê½´´½¨ÕâÖÖsocket
1.socket(AF_INET, SOCK_RAW, IPPROTO_TCP|IPPROTO_UDP|IPPROTO_ICMP)·¢ËͽÓÊÕipÊý¾Ý°ü
2.socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP|ETH_P_ARP|ETH_P_ALL))·¢ËͽÓÊÕÒÔÌ« ......