linuxÏÂecho ÃüÁîÏê½â
linuxµÄechoÃüÁî, ÔÚshell±à³ÌÖм«Îª³£ÓÃ, ÔÚÖÕ¶ËÏ´òÓ¡±äÁ¿valueµÄʱºòÒ²Êdz£³£Óõ½µÄ, Òò´ËÓбØÒªÁ˽âÏÂechoµÄÓ÷¨
echoÃüÁîµÄ¹¦ÄÜÊÇÔÚÏÔʾÆ÷ÉÏÏÔʾһ¶ÎÎÄ×Ö£¬Ò»°ãÆðµ½Ò»¸öÌáʾµÄ×÷Óá£
¸ÃÃüÁîµÄÒ»°ã¸ñʽΪ£º echo [ -n ] ×Ö·û´®
ÆäÖÐÑ¡Ïîn±íʾÊä³öÎÄ×Öºó²»»»ÐУ»×Ö·û´®ÄܼÓÒýºÅ£¬Ò²Äܲ»¼ÓÒýºÅ¡£ÓÃechoÃüÁîÊä³ö¼ÓÒýºÅµÄ×Ö·û´®Ê±£¬½«×Ö·û´®ÔÑùÊä³ö£»ÓÃechoÃüÁîÊä³ö²»¼ÓÒýºÅµÄ
×Ö·û´®Ê±£¬½«×Ö·û´®Öеĸ÷¸öµ¥´Ê×÷Ϊ×Ö·û´®Êä³ö£¬¸÷×Ö·û´®Ö®¼äÓÃÒ»¸ö¿Õ¸ñ·Ö¸î¡£
¹¦ÄÜ˵Ã÷£ºÏÔʾÎÄ×Ö¡£
Óï ¡¡ ·¨£ºecho [-ne][×Ö·û´®]»ò echo [--help][--version]
²¹³ä˵Ã÷£ºecho»á½«ÊäÈëµÄ×Ö·û´®ËÍÍù±ê×¼Êä³ö¡£Êä³öµÄ×Ö·û´®¼äÒÔ¿Õ°××Ö·û¸ô¿ª, ²¢ÔÚ×îºó¼ÓÉÏ»»Ðкš£
²Î¡¡¡¡ Êý£º-n ²»ÒªÔÚ×îºó×Ô¶¯»»ÐÐ
-e Èô×Ö·û´®ÖгöÏÖÒÔÏÂ×Ö·û£¬ÔòÌرð¼ÓÒÔ´¦Àí£¬¶ø²»»á½«Ëüµ±³ÉÒ»°ã
ÎÄ×ÖÊä³ö£º
\a ·¢³ö¾¯¸æÉù£»
\b ɾ³ýÇ°Ò»¸ö×Ö·û£»
\c ×îºó²»¼ÓÉÏ»»ÐзûºÅ£»
\f »»Ðе«¹â±êÈÔ¾ÉÍ£ÁôÔÚÔÀ´µÄλÖã»
\n »»ÐÐÇÒ¹â±êÒÆÖÁÐÐÊ×£»
\r ¹â±êÒÆÖÁÐÐÊ×£¬µ«²»»»ÐУ»
\t ²åÈëtab£»
\v Óë\fÏàͬ£»
\\ ²åÈë\×Ö·û£»
\nnn ²åÈënnn£¨°Ë½øÖÆ£©Ëù´ú±íµÄASCII×Ö·û£»
–help ÏÔʾ°ïÖú
–version ÏÔʾ°æ±¾ÐÅÏ¢
Ïà¹ØÎĵµ£º
Íê³É±¾ÎÄ£¬Ê¹ÓÃÁËÁ½¸ö¹¤¾ß
1. strace
2. google code search
.
----
swap·ÖÇøÓÐÒ»¸ö´óСΪPAGE_SIZEµÄÒ³Ã棬³ÆΪsignatureÒ³£¬ÉÏÃæ¼Ç¼swap·ÖÇøµÄ»ù±¾ÐÅÏ¢¡£
static struct swap_header_v1 {
char bootbits[1024]; /* Space for disklabel etc. */
unsigned int version;
......
ʹÓÃLinuxÏÂmanÒѾºÜ¾ÃÁË¡£µ«Ö»ÊÇ´ó¸ÅÖªµÀÆäÄÚÈݵĴæ·ÅĿ¼£¬ÒÔ¼°man number xxxÖÐmumberµÄº¬Òå¡£½ñÌìÐèÒªÌí¼ÓC++ man page¡£Ë³±ã½«manµÄÄÚÈÝ×÷Ò»¸ö½ÏÏêϸµÄÁ˽⡣ 0. manºóÃæÊý×ֵĺ¬Ò壺 ֮ǰSamÔÚ²éÕÒC¿âº¯Êýʱ£¬»áʹÓÃ#man 3 func ÔÚ²éÕÒϵͳµ÷ÓÃʱ£¬ÔòʹÓÃ#man 2 fork. ·ñÔòÓÐʱ»á³öÏֲ鵽ͬÃûµÄshellÖÐÃüÁîµÄÇé¿ ......
Linux̫ΰ´óÁË£¬Ê²Ã´¶«Î÷¶¼¿ÉÒÔÓÉÄãÀ´×öÖ÷£¬Linux¼ÓÔØÍêÄں˺ó£¬ËùÓеÄÆäËûϵͳ·þÎñ£¬½ø³Ì£¬¶¼ÊÇ¿¿½Å±¾À´¼ÓÔصġ£ËùÒÔLinuxÊÇÕâôµÄ͸Ã÷£¬
Äã¿ÉÒÔÇå³ýµÄÖ¸µ¼ÄãµÄϵͳ×öÁËʲô¡£
ÏÂÃæÎҾͶÔLinuxµÄÆô¶¯½Å±¾×öÁË×¢ÊÍ£¬¸Ã½Å±¾ÊÇÊôÓÚLFSµÄ£¬ÒòΪ¸Ãϵͳ±È½ÏС£¬Ëù ......
ÔÚlinuxÏÂÔõôȡ×òÌ죨ǰһÌ죩µÄÈÕÆÚ£¿
man
date£¬¿ÉÒÔ¿´µ½date¿ÉÒÔÏÔʾµ±Ç°µÄʱ¼ä£¬ÐÞ¸Äϵͳʱ¼ä£¬»òÕßÏÔʾָ¶¨µÄʱ¼ä¡£È¡µ½µ±Ç°Ê±¼ä£¬µ±È»¿ÉÒÔ·´Ëã»ØÈ¥£¬µ«ÓÖÒªÅжÏÊÇ·ñÊÇÒ»¸öÔµÄ×îºóÒ»
Ì죬һÄêµÄ×îºóÒ»Ì죬 »¹ÓÐÈòÄêÐèÒªÅжϣ¬Ð´³öµÄ½Å±¾²»ÊÇ10¼¸ÐÐÄܽâ¾öµÄ¡£Æäʵdate±¾Éí¾ÍÓÐÒ»¸ö·½·¨¿ÉÒÔ¼ÆËãʱ¼ä£¬×òÌ죬Π......