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

LINUX³£ÓÃÃüÁ»ù´¡£©

LINUX³£ÓÃÃüÁ»ù´¡£©
1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ
eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨
×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£
2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
ls -l
a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹ûÊÇlÔò±íʾÊÇÒ»¸öÁ¬½ÓÎļþ(link)
b.±íʾÎļþ»òÕßĿ¼Ðí¿ÉȨÏÞ.·Ö±ðÓÿɶÁ(r)£¬¿Éд(w)£¬¿ÉÔËÐÐ(x)¡£
3. cp ¿½±´Îļþ
eg: cp filename1 filename2 //°Ñfilename1¿½±´³Éfilename2
cp 1.c netseek/2.c //½«1.c¿½µ½netseekĿ¼ÏÂÃüÃûΪ2.c
4. rm ɾ³ýÎļþºÍĿ¼
eg: rm 1.c //½«1.cÕâ¸öÎļþɾ³ý
5. mv ÒÆ×ßĿ¼»òÕ߸ÄÎļþÃû
eg: mv filename1 filename2 //½«filename1 ¸ÄÃûΪfilename2
mv qib.tgz ../qib.tgz //ÒÆµ½ÉÏÒ»¼¶Ä¿Â¼
6. cd ¸Ä±äµ±Ç°Ä¿Â¼ pwd ²é¿´µ±Ç°ËùÔÚĿ¼ÍêÕû·¾¶
eg: pwd //²é¿´µ±Ç°ËùÔÚĿ¼·¾¶
cd netseek //½øÈënetseekÕâ¸öĿ¼
cd //Í˳öµ±Ç°Ä¿Â¼
7. cat£¬moreÃüÁî
½«Ä³¸öÎļþµÄÄÚÈÝÏÔʾ³öÀ´¡£Á½¸öÃüÁîËù²»Í¬µÄÊÇ:cat°ÑÎļþÄÚÈÝÒ»Ö±´òÓ¡³öÀ´£¬¶ø moreÔò·ÖÆÁÏÔʾ
eg; cat>1.c //¾Í¿ÉÒÔ°Ñ´úÂëÕ³Ìûµ½1.cÎļþÀ°´ctrl+d ±£´æ´úÂë¡£
cat 1.c »òmore 1.c //¶¼¿ÉÒԲ鿴ÀïÃæµÄÄÚÈÝ¡£
gcc -o 1 1.c //½«1.c±àÒë³É.exeÎļþ£¬ÎÒÃÇ¿ÉÒÔÓôËÃü±àÒë³ö´úÂë¡£
8.chmod ÃüÁî ȨÏÞÐÞ¸Ä Ó÷¨£ºchmod һλ8½øÖÆÊý filename¡£
eg: chmod u+x filenmame //Ö»Ïë¸ø×Ô¼ºÔËÐУ¬±ðÈËÖ»ÄܶÁ
//u±íʾÎļþÖ÷ÈË£¬ g ±íʾÎļþÎļþËùÔÚ×é¡£ o ±íʾÆäËûÈË ;r ±í¿É¶Á£¬w ±í¿Éд£¬x ±í¿ÉÒÔÔËÐÐ
chmod g+x filename //ͬ×éµÄÈËÀ´Ö´ÐÐ
9. clear£¬dateÃüÁî
clear:ÇåÆÁ£¬Ï൱ÓëDOSϵÄcls;date:ÏÔʾµ±Ç°Ê±¼ä¡£
10. mount ¼ÓÔØÒ»¸öÓ²¼þÉ豸
Ó÷¨:mount [²ÎÊý] Òª¼ÓÔØµÄÉ豸 ÔØÈëµã
eg: mount /dev/cdrom
cd /mnt/cdrom //½øÈë¹âÅÌĿ¼
11. su ÔÚ²»Í˳öµÇ½µÄÇé¿öÏ£¬Çл»µ½ÁíÍâÒ»¸öÈ˵ÄÉí·Ý
Ó÷¨: su -l Óû§Ãû(Èç¹ûÓû§Ãûȱʡ£¬ÔòÇл»µ½root״̬)
eg:su -l netseek (Çл»µ½netseekÕâ¸öÓû§£¬½«ÌáʾÊäÈëÃÜÂë)
12.whoami£¬whereis£¬which£¬id
//whoami:È·ÈÏ×Ô¼ºÉí·Ý
//whereis:²éѯÃüÁîËùÔÚĿ¼ÒÔ¼°°ïÖúÎĵµËùÔÚĿ¼
//which:²éѯ¸ÃÃüÁîËùÔÚĿ¼(ÀàËÆwhereis)
//id:´òÓ¡³ö×Ô¼ºµÄUIDÒÔ¼°GID¡£(UID:Óû§Éí·ÝΨһ±êʶ¡£GID:Óû§×éÉí·ÝΨһ±êʶ¡£Ã¿Ò»¸öÓû§Ö»ÄÜÓÐÒ»¸öΨһµÄUIDºÍ GID)
eg: whoami //ÏÔʾÄã×ÔÒѵǽµ


Ïà¹ØÎĵµ£º

ÔÚWindowsÏÂÔ¶³Ì×ÀÃæÁ¬½ÓLinux XManagerƪ

×÷Õߣº¸ßÕÅÔ¶Öõ(HiLoveS)
Ô­ÎÄ£ºhttp://www.cnblogs.com/hiloves/archive/2010/05/18/1738084.html
 
XManagerÊÇÒ»¸ö¼òµ¥Ò×ÓõĸßÐÔÄܵÄÔËÐÐÔÚWindowsƽ̨ÉϵÄX-ServerÈí¼þ£¬¶øGnomeºÍKDE¾ÍÊÇX-Client£¬LinuxϵÄX-ServerÔòΪXorg¡£ËüÄܰÑÔ¶¶ËUnix/LinuxµÄ×ÀÃæÎÞ·ìµØ´øµ½ÄãµÄWindowsÉÏ£¬ÉõÖÁµ±ÄãµÄµçÄÔÊÇÔÚÄÚÍø»ò·À ......

LinuxÄں˲ÎÊýµ÷ÓÅ

1. ²é¿´socket״̬
server1:~ # netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 257
CLOSE_WAIT 117
FIN_WAIT2 2
ESTABLISHED 228
2. #vi /etc/sysctl.conf
3. Ôö¼Ó
   net.ipv4.tcp_keepalive_time = 120
   net.ipv4.tcp_keepalive_probes = 2
 &n ......

asterisk ÒÆÖ²µ½ ǶÈëʽlinux ppc_6xx »·¾³ÏÂ

½«asteriskÒÆÖ²µ½ppc__6xx»·¾³ÏµÄǶÈëʽϵͳÉϵÄÖ÷Òª²½Ö裺
ÔÚËÞÖ÷»úÉÏasteriskÔ´Âë°ü½âѹËõºóµÄĿ¼ÏÂ:
1.  ./configure CC=ppc_6xx_gcc --without_gnu_ld __host=ppc_linux (¹ýÈ¥ÓжÎʱ¼äÁË£¬´óСд¿ÉÄÜÓеã¼Ç²»Çå³þ)
2. make menuselect £¨Ñ¡ÔñÒª²Ã¼ôµÄ×é¼þ£©
3. make cross_complier=ppc_6xx ARCH=ppc
4. ma ......

LinuxÍø¿¨Çý¶¯¿ª·¢×ܽá

1. ÍøÂç×Óϵͳ
* ϵͳµ÷ÓýӿÚ
* ЭÒéÎ޹زã
* ЭÒéʵÏÖ²ã
* Çý¶¯Î޹زã
* Çý¶¯³ÌÐò²ã
×¢£ºµ÷ÓýӿÚ<->ЭÒé²ã<->Çý¶¯³ÌÐò
2. Íø¿¨Çý¶¯³ÌÐò
* λÓÚÊý¾ÝÁ´Â·²ã
3. ¹Ø¼üÊý¾Ý½á¹¹
* struct net_device
* struct sk_buffer
4. ³õʼ»¯
* Éú³Énet_device£¬²¢³õʼ»¯Æä³ÉÔ±
* ¸ù¾ÝÐèÒª£¬¶ÔÍø¿¨×ÔÉí¼Ä´æÆ÷ ......

Linuxƽ̨ÏÂÎļþµÄѹËõÓë½âѹ²ÎÊý˵Ã÷


Ãæ¶Ô×ÅһЩºó׺Ϊtar¡¢tar.gz¡¢tar.bz2……¾ÍÓÐЩãȻÁË£¬
ÆäʵÀí½âÁË£¬×ÔÈ»¾ÍÓ­Èжø½âÁË¡£
Ê×ÏÈÒªÃ÷È·Ò»¸ö¸ÅÄlinuxÏÂÃæµÄ´ò°üºÍѹËõÊÇÁ½ÂëÊ£¬
Ò²¾ÍÊÇÄã¿ÉÒÔ¶ÔÎļþ½øÐдò°ü£¬µ«ÊDz»Ñ¹Ëõ¡£
À´¿´¸öÀý×Ó£º
ÔÚÎҵĸùĿ¼ÏÂÓиöÃûΪwallpaperµÄÎļþ¼Ð£¬ÀïÃæÊÇһЩǽֽ£¬
ÎÒÏÖÔÚ¶ÔÕâ¸öÎļþ¼Ð½øÐдò°ü£¬µ« ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ