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

һЩÒ×ÍüµÄlinux֪ʶµã£¨Ò»£©

 0, ¸´Ï°ÒѾ­Ñ§¹ýµÄ Linux ֪ʶ£¬ÕûÀíÁËЩÈÝÒ×ÍüµôÁ˵ķÅÕâ
 1, ÃüÁîÐÐÖÐÒ»´Î¿ÉÒÔÊäÈë¶à¸öÃüÁÖмäÒԷֺźŸô¿ª
 2, ÃüÁî¹ý³¤¿ÉÒÔÓÃ'\' £¨backslash £©¶Ï¿ªÐ´µ½¶à¸öÎïÀíÐÐÉÏ
 3, I/O Öض¨ÏòµÄÊéд˳ÐòÊÇÖØÒªµÄ£¬ÏµÍ³´Ó×óÏòÓÒɨÃèÃüÁîÐÐ
 4, ¹ÜµÀÊÇÒ»ÖÖÌØÊâµÄI/O Öض¨Ïò
 5, tee Èýͨ¹ÜʽÃüÁî tee filename
 6, ÎÞ×Ö·û[...] ÖÐÀý¾ÙʱÎÞÐè¿Õ¸ñ¸ô¿ª, Çø·Ö´óСд
 7, ls ÃüÁîºóÃæ¿ÉÒÔ¸ú×Ŷà¸öÒª²é¿´µÄÎļþ
 8, echo ºóÃæµÄÒýºÅµÈ»á±»ºöÂÔ£¬³ý·ÇÃ÷ȷתÒå
 9, Ë«ÒýºÅ²»ÄÜתÒå! $ ' \ { } ÕâЩ×Ö·û, µ¥ÒýºÅÔò¿ÉÒÔ
10, ÃüÁîÀúÊ·±£´æÔÚ$HOME/.bash_history ÎļþÖÐ
11, fc -s ÃüÁîµÈ¼ÛÓÚ!! µÈ¼ÛÓÚ!!-1
12, history -c Çå¿ÕÀúÊ·ÃüÁî
13, alias ÃüÁîÖеĵȺÅ×óÓÒ²»ÄÜÓпոñÈ¡Ïû±ðÃû¿ÉÓÃunalias ÃüÁî
14, jobs fg bg kill & ÃüÁîÓÃÓÚ¶àÈÎÎñµ÷¶È
15, ϵͳԴ´úÂë±£´æÔÚ/usr/src ÖÐ
16, linux ¶ÔÎļþÃûûÓÐÇ¿¼ÓÈκÎÔ¼¶¨£¬Ò²²»»á¶ÔÀ©Õ¹ÃûÓÐÈκνâÊÍ
17, od ÃüÁîÓÃÓÚ½â¶Á¶þ½øÖÆÎļþ£¬Ä¬ÈÏÓÃ8 ½øÖÆÏÔʾ
18, Ó²Á¬½ÓÒªÇóÁ½¸öÁ´½ÓÎļþÔÚͬһ¸öÎļþϵͳÖУ¬¶ø·ûºÅÁ´½ÓÔòûÕâÒªÇó
19, ÈýÖÖ´´½¨ÎļþµÄ·½·¨£ºtouch , >file ,echo >file
20, ls -k ÓÃÓÚÖ¸¶¨´óСÒÔKB Ϊµ¥Î»£¬£­R ÔòÖ¸¶¨µÝ¹éÏÔʾ
21, Ctrl + V ¿ÉÒÔÓÃÀ´´ú±íÒ»¸ö¿ØÖÆ×Ö·û Èç mv fi^Vabc^Vdkf .. µ±È»Ò²¿ÉÒÔÓõ¥ÒýºÅ
22, cat ÃüÁ¿ÉÒÔÓÃÀ´ºÏ²¢Îļþ eg: cat chap1 chap2 chap3 > usrfile
23, more ºÍless µÄһЩÃüÁî¼ü£º iSpace, iEnter, id( ÉÏ°ë) , iu( Ï°ë) , if, ib(more only) h(help)
24, head tail ĬÈÏ10 ÐУ¬¿ÉÒÔÏÔʽָÃ÷ÐÐÊýhead|tail -|+12 file tail -f file ¶¯Ì¬ÏÔʾ
25, cp,mv,rm : -i Ìáʾ -f Ç¿ÖÆ -r(rm ûÓÐ) µÝ¹é Îļþ£¬Îļþ¼Ð¶¼ÊÊÓÃ
26, ln ÓÃÓÚ½¨Á¢Á´½Ó -s ÃüÁîÖ¸Ã÷ÈíÁ´½Ó( ·ûºÅÁ´½Ó)
27, find ,grep ºóÃ涼¸úÕýÔò±í´ïʽ find ÆðʼĿ¼ Îļþ -exec ÃüÁî{} \+|; {} ´ú±íËÑË÷½á¹û
28, grep -inv patten file i:ignorecase n: ÏÔʾÐкŠv: È¡·´£¬²»°üº¬
29, ÕýÔò±í´ïʾ: . µ¥×Ö·û + ÖÁÉÙÒ»¸ö×Ö·û \ תÒå ^$ ¿ÕÐÐ
30, sort -nkr n °´Êý×Ö k ¹Ø¼üÁУ¨-k5 £© r ·´Ðò£¨´ó£­> С£©
31, vi ÖÐshift+zz µÈͬÓÚ Esc+:+wq!+Enter fedora £ºalias vi=vim
ÒÔÏÂShell ±à³Ì·½Ãæ
32, ϵͳÿ´ò¿ªÒ»¸ö½ø³Ì¶¼»áÖ´ÐÐ~/.bashrc Îļþ, ¿ÉÒÔ±»Óû§ÓÃÀ´×÷һЩ¹¦Äܵijõʼ»¯
33, $? ×î½üÒ»´Î³ö¿Ú״̬£»$# λÖòÎÊ


Ïà¹ØÎĵµ£º

linux 1ºÅ½ø³Ì

1ºÅ½ø³Ì£¬pidΪ1µÄ½ø³Ì£¬ÓÖ³Æinit½ø³Ì¡£
¡¡¡¡linuxϵͳÆô¶¯ºó£¬µÚÒ»¸ö±»´´½¨µÄÓû§Ì¬½ø³Ì¾ÍÊÇinit½ø³Ì¡£ËüÓÐÁ½ÏîʹÃü£º
¡¡¡¡1¡¢Ö´ÐÐϵͳ³õʼ»¯½Å±¾£¬´´½¨Ò»ÏµÁеĽø³Ì(ËüÃǶ¼ÊÇinit½ø³ÌµÄ×ÓËï);
¡¡¡¡2¡¢ÔÚÒ»¸öËÀÑ­»·ÖеȴýÆä×Ó½ø³ÌµÄÍ˳öʼþ£¬²¢µ÷ÓÃwaitidϵͳµ÷ÓÃÀ´Íê³É“ÊÕʬ”¹¤×÷;
¡¡¡¡init½ø³Ì²»»á±»ÔÝ ......

Linux °²×°ÖÐÎÄ°ü

Linux °²×°ÖÐÎÄ°ü
Ê×ÏÈ£¬°²×°ÖÐÎÄ°ü£º
#yum groupinstall chinese-support
Æä´Î£¬ÐÞ¸ÄÒ»ÏÂ×Ö·û±àÂëµÄÅäÖá£
# vi /etc/sysconfig/i18n
Ð޸ĺóÄÚÈÝÈçÏ£º  
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"
SYSFONT="latarcyrheb-sun16"
×îºóÖØÆô·þ ......

Linux Shell±à³Ì(»ù´¡½Ì³Ì)


±¾ÎÄÍøÖ·:http://bbs.bitscn.com/72875 ¸´ÖÆ
1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
       ³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·ÅÔÚÎļþµÄµÚÒ»ÐУ©£º 
       #!/bin/sh 
¡¡   ·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐÐ ......

linuxÉϵļ¸¸ö·Å¿ÉÖ´ÐÐÎļþµÄĿ¼ÓÐʲô²»Í¬£¿

linuxÉϵļ¸¸ö·Å¿ÉÖ´ÐÐÎļþµÄĿ¼ÓÐʲô²»Í¬£¿
/bin:                     programs used in booting the system
/usr/bin:               ......

Linux ×Ô¼ìºÍ SystemTap


 
 
SystemTap ÊǼà¿ØºÍ¸ú×ÙÔËÐÐÖÐµÄ Linux Äں˵IJÙ×÷µÄ¶¯Ì¬·½·¨¡£Õâ¾ä»°µÄ¹Ø¼ü´ÊÊǶ¯Ì¬£¬ÒòΪ SystemTap ûÓÐʹÓù¤¾ß¹¹½¨Ò»¸öÌØÊâµÄÄںˣ¬¶øÊÇÔÊÐíÄúÔÚÔËÐÐʱ¶¯Ì¬µØ°²×°¸Ã¹¤¾ß¡£Ëüͨ¹ýÒ»¸öÃûΪKprobes µÄÓ¦Óñà³Ì½Ó¿Ú£¨API£©À´ÊµÏÖ¸ÃÄ¿µÄ£¬±¾ÎĽ«Ì½Ë÷Õâ¸ö API¡£ÎÒÃÇÊ×ÏÈÁ˽âÒÔÇ°µÄһЩÄں˸ú×Ù·½·¨£¬È»ºóÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ