Linuxϲ鿴ÎĵµÄÚÈÝÃüÁî×ܽá
Linuxϲ鿴ÎĵµÄÚÈÝÃüÁî×ܽá
Ö÷ÒªÓÐÈçϼ¸¸öÃüÁ
cat ÓɵÚÒ»ÐпªÊ¼ÏÔʾÎĵµÄÚÈÝ
tac ´Ó×îºóÒ»ÐпªÊ¼ÏÔʾ£¬¿ÉÒÔ¿´³ö tac ÊÇ cat µÄµ¹×Åд
nl ÏÔʾµÄʱºò£¬Ë³µÀÊä³öÐкÅ
more Ò»Ò³Ò»Ò³µÄÏÔʾÎĵµÄÚÈÝ
less ºÍmoreÀàËÆ£¬µ«Ëü¿ÉÒÔÍùÇ°·Ò³
head Ö»¿´×îÇ°¼¸ÐÐ
tail Ö»¿´×îºó¼¸ÐÐ
od ÒÔ¶þ½øÖÆÔĶÁÎĵµÄÚÈÝ
¹¦ÄÜ×îÇ¿Ôڵıà¼Æ÷——vi
viÊÇËùÓÐUNIXϵͳ¶¼»áÌṩµÄÆÁÄ»±à¼Æ÷£¬ËüÌṩÁËÒ»¸öÊÓ´°É豸£¬Í¨¹ýËü¿ÉÒÔ±à¼Îļþ¡£µ±È»£¬¶ÔUNIXϵͳÂÔÓÐËùÖªµÄÈË£¬
»ò¶à»òÉÙ¶¼¾õµÃvi³¬¼¶ÄÑÓ㬵«viÊÇ×î»ù±¾µÄ±à¼Æ÷£¬ËùÒÔÏ£Íû¶ÁÕßÄܺúðÑËüѧÆðÀ´£¬ÒÔºóÔÚUNIXÊÀ½çÀï±Ø½«³©ÐÐÎÞ×è¡¢
ÓÎÈÐÓÐÓ࣬ÒòΪÆäËû¼¸ÖÖÎı¾´¦ÀíÆ÷²¢·ÇUNIX±ê×¼Å䱸¡£Ëµ²»¶¨±ðÈ˵ÄLinux»úÆ÷û°²×°joe»òpico£¬Èç¹ûÄú²»»ávi£¬ÄÇÄú¿ÉÄܾÍûéüÁË¡£
viµÄ»ù±¾¸ÅÄî
»ù±¾ÉÏvi¿É·ÖΪÈýÖÖ²Ù×÷״̬£¬·Ö±ðÊÇÃüÁîģʽ£¨Command mode£©¡¢²åÈëģʽ£¨Insert mode£©ºÍµ×ÏßÃüÁîģʽ£¨Last line mode£©£¬
¸÷ģʽµÄ¹¦ÄÜÇø·ÖÈçÏ£º
1£® Comand mode£º¿ØÖÆÆÁÄ»¹â±êµÄÒƶ¯£¬×Ö·û»ò¹â±êµÄɾ³ý£¬Òƶ¯¸´ÖÆijÇø¶Î¼°½øÈëInsert modeÏ£¬»òÕßµ½Last line mode¡£
2£® Insert mode£ºÎ¨ÓÐÔÚInsert modeÏ£¬²Å¿É×öÎÄ×ÖÊý¾ÝÊäÈ룬°´EscµÈ¿É»Øµ½Comand mode¡£
3£® Last line mode£º½«´¢´æÎļþ»òÀ뿪±à¼Æ÷£¬Ò²¿ÉÉèÖñ༻·¾³£¬ÈçÑ°ÕÒ×Ö·û´®¡¢ÁгöÐкŵȡ£
²»¹ý¿ÉÒÔ°Ñvi¼ò»¯³ÉÁ½¸öģʽ£¬¼´Êǽ«Last line modeÒ²ËãÈëCommand mode,°Ñvi·Ö³ÉCommand ºÍInsert mode¡£
viµÄ»ù±¾²Ù×÷
?½øÈëvi
ÔÚϵͳÌáʾ·ûºÅÊäÈëvi¼°ÎļþÃû³Æºó£¬¼´¿É½øÈëviÈ«ÆÁÄ»±à¼»Ã棺
$ vi testfile
ÓÐÒ»µãÒªÌرð×¢Ò⣬¾ÍÊÇÄú½øÈëviÖ®ºóÊÇ´¦ÓÚ“Command mode”Ï£¬ÄúÒªÇл»µ½Insert mode²ÅÄÜÊäÈëÎÄ×Ö¡£
³õ´ÎÓÃviµÄÓû§¶¼»áÏëÏÈÓÃÉÏÏÂ×óÓÒ¼üÒƶ¯¹â±ê£¬½á¹ûµçÄÔÒ»Ö±½Ð£¬°Ñ×Ô¼ºÆø¸ö°ëËÀ£¬ËùÒÔ½øÈëviºó£¬ÏȲ»ÒªÂÒ¶¯£¬
ת»»ÈëInsertºóÔÙ˵¡£?Çл»ÖÁInsert mode±à¼ÎļþÔÚCommand modeÏ°´‘i’¡¢‘a’»ò‘o’Èý¼ü¾Í¿É½øÈëInsert mode¡£
ÕâʱºòÄú¾Í¿ÉÒÔ¿ªÊ¼ÊäÈëÎÄ×ÖÁË¡£
i: ²åÈ룬´ÓÄ¿Ç°¹â±êËùÔÚÖ®´¦²åÈëËùÊäÈëµÄÎÄ×Ö¡£
a: Ôö¼Ó£¬Ä¿Ç°¹â±êËùÔÚµÄÏÂÒ»¸ö×Ö¿ªÊ¼ÊäÈëÎÄ×Ö¡£
o: ²åÈëеÄÒ»ÐУ¬´ÓÐÐÊ׿ªÊ¼ÊäÈëÎÄ×Ö¡£
?InsertµÄÇл»&
Ïà¹ØÎĵµ£º
×¼±¸¹¤×÷£º
1.Xming£¨windowsÔËÐÐx-windowsµÄÖ§³Ö£©
2.SecureCRTV6.5.8.380ºº»¯ÂÌÉ«Æƽâ°æ
¿ÉÒÔÈ¥ÎÒµÄhttp://download.csdn.net/johnvikeyÏÂÔØ
Èç¹ûÊÇÃüÁîÐÐÖ±½ÓÓÃ
SecureCRT
Èç¹ûÊÇÒªÔËÐÐͼÐγÌÐò
1.Xming£¨windowsÔËÐÐx-windowsµÄÖ§³Ö£©
2.SecureCRTV6.5.8.380ºº»¯ÂÌÉ«Æƽâ°æ
¶¼ÒªÊ¹ÓÃ
———&m ......
SystemTap ÊǼà¿ØºÍ¸ú×ÙÔËÐÐÖÐµÄ Linux Äں˵IJÙ×÷µÄ¶¯Ì¬·½·¨¡£Õâ¾ä»°µÄ¹Ø¼ü´ÊÊǶ¯Ì¬£¬ÒòΪ SystemTap ûÓÐʹÓù¤¾ß¹¹½¨Ò»¸öÌØÊâµÄÄںˣ¬¶øÊÇÔÊÐíÄúÔÚÔËÐÐʱ¶¯Ì¬µØ°²×°¸Ã¹¤¾ß¡£Ëüͨ¹ýÒ»¸öÃûΪKprobes µÄÓ¦Óñà³Ì½Ó¿Ú£¨API£©À´ÊµÏÖ¸ÃÄ¿µÄ£¬±¾ÎĽ«Ì½Ë÷Õâ¸ö API¡£ÎÒÃÇÊ×ÏÈÁ˽âÒÔÇ°µÄһЩÄں˸ú×Ù·½·¨£¬È»ºóÔ ......
Description of the "runinfo" format
-----------------------------------
Purpose of the "runinfo" files
------------------------------
"runinfo" files found in the source tree allow the "rtai-load" script
(see rtai-core/scripts/rtai-load) to retrieve the information it needs
to execute a RTAI ......
·find path -option [ -print ] [ -exec -ok command ] {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec command {} \; -----½«²éµ½µ ......
¸ÅÊö
1. “/etc/profile”Îļþ
2. “bdflush”²ÎÊý
3. “ip_local_port_range”²ÎÊý
4. “/etc/nsswitch.conf”Îļþ
5. “/proc”Îļþϵͳ
6. “ulimit”²ÎÊý
7. Ôö¼Óϵͳ´ò¿ªµÄÎļþÊýÄ¿
8. Îļþ“atime”ÊôÐÔ
9. ÎļþµÄ“noatime&rd ......