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

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: w


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

mylab_sys_exec UDFµ÷ÓÃmysqlÍⲿϵͳÃüÁî(For linux)

ÓÐʱºòΪÁË·½±ã£¬ÀûÓÃevent/triggerµ÷ÓÃϵͳÍⲿÃüÁ¿ÉÒòΪ°²È«ÎÊÌ⣬mysql×ÔÉí²¢Ã»ÓÐÌṩÏà¹ØÃüÁÕâÀïÌṩ¸öµ÷ÓÃϵͳÃüÁîµÄ×Ô¶¨Ò庯Êýmylab_sys_exec
soÎļþÏÂÔØ:mylab_sys_exec.so ( mysql5.1.34 ²âÊÔͨ¹ý)
¼ÓÔØ:
CREATE FUNCTION mylab_sys_exec RETURNS INTEGER SONAME "mylab_sys_exec.so";
ʹÓÃ:
SELECT myl ......

Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)

ת×Ô£ºhttp://www.vimer.cn
Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)
1.psÃüÁî
×÷ÓãºpsÃüÁîÖ÷Òª²é¿´ÏµÍ³Öнø³ÌµÄ״̬¡£
¸ñʽ£ºps [Ñ¡Ïî]
Ö÷ҪѡÏîÈçÏ¡£
-A£ºÏÔʾϵͳÖÐËùÓнø³ÌµÄÐÅÏ¢¡£
-e£ºÏÔʾËùÓнø³ÌµÄÐÅÏ¢¡£
-f£ºÏÔʾ½ø³ÌµÄËùÓÐÐÅÏ¢¡£
-l£ºÒÔ³¤¸ñʽÏÔʾ½ø³ÌÐÅÏ¢¡£
-r£ºÖ»ÏÔʾÕýÔÚÔËÐеĽø³Ì¡£
-u£ºÏÔʾÃæÏòÓû§µÄ ......

[Linux] ¹ØÓÚ Ext4 HowTo

Ò»Ö±ÔÚ¹Ø×¢´óÐÍÎļþ´æ´¢ÏµÍ³µÄ×îнü¿ö£¬½üÈÕÓÖµÃÖªÒ»¸öÖØ°õÏûÏ¢£ºLinux kernel ×Ô 2.6.28 ¿ªÊ¼Õýʽ֧³ÖеÄÎļþϵͳ Ext4¡£ÕæÊÇÆÚ´ýÒѾÃÁË°¡~Ext4 ÊÇ Ext3 µÄ¸Ä½ø°æ£¬ÐÞ¸ÄÁË Ext3 Öв¿·ÖÖØÒªµÄÊý¾Ý½á¹¹£¬¶ø²»½ö½öÏñ Ext3 ¶Ô Ext2 ÄÇÑù£¬Ö»ÊÇÔö¼ÓÁËÒ»¸öÈÕÖ¾¹¦ÄܶøÒÑ¡£Ext4 ¿ÉÒÔÌṩ¸ü¼ÑµÄÐÔÄܺͿɿ¿ÐÔ£¬»¹ÓиüΪ·á¸»µÄ¹¦ÄÜ£ ......

LINUX ÏÂVIÉèÖÃ

LINUX ÏÂVIÉèÖÃ
Ó¦ÓóÌÐòÆô¶¯Ê±£¬ÏȶÁÆäÅäÖÃÎļþ¡£Õâ¶ÔÓÚvi/vimÀ´Ëµ¾ÍÊǹ¤×÷Ŀ¼ÏµÄÒþ²ØÎļþ.vimrc¡£
     ¹ý³Ì(ÒÔrootÓû§ÎªÀý)
          #vi ~/.vimrc
          ÓÃÒÔÏÂÃüÁîд.vimrcÎļþΪ£º
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ