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

¡¾×ª¡¿linux cp ¸´ÖÆÎļþ ÃüÁî

 cpÃüÁî
¸ÃÃüÁîµÄ¹¦ÄÜÊǽ«¸ø³öµÄÎļþ»òĿ¼¿½±´µ½ÁíÒ»Îļþ»òĿ¼ÖУ¬Í¬MSDOSϵÄcopyÃüÁîÒ»Ñù£¬¹¦ÄÜÊ®·ÖÇ¿´ó¡£
Óï·¨£º cp [Ñ¡Ïî] Ô´Îļþ»òĿ¼ Ä¿±êÎļþ»òĿ¼
˵Ã÷£º¸ÃÃüÁî°ÑÖ¸¶¨µÄÔ´Îļþ¸´ÖƵ½Ä¿±êÎļþ»ò°Ñ¶à¸öÔ´Îļþ¸´ÖƵ½Ä¿±êĿ¼ÖС£
¸ÃÃüÁîµÄ¸÷Ñ¡ÏÒåÈçÏ£º
- a ¸ÃÑ¡Ïîͨ³£ÔÚ¿½±´Ä¿Â¼Ê±Ê¹Óá£Ëü±£ÁôÁ´½Ó¡¢ÎļþÊôÐÔ£¬²¢µÝ¹éµØ¿½±´Ä¿Â¼£¬Æä×÷ÓõÈÓÚdpRÑ¡ÏîµÄ×éºÏ¡£
- d ¿½±´Ê±±£ÁôÁ´½Ó¡£
- f ɾ³ýÒѾ­´æÔÚµÄÄ¿±êÎļþ¶ø²»Ìáʾ¡£
- i ºÍfÑ¡ÏîÏà·´£¬ÔÚ¸²¸ÇÄ¿±êÎļþ֮ǰ½«¸ø³öÌáʾҪÇóÓû§È·ÈÏ¡£»Ø´ðyʱĿ±êÎļþ½«±»¸²¸Ç£¬Êǽ»»¥Ê½¿½±´¡£
- p ´Ëʱcp³ý¸´ÖÆÔ´ÎļþµÄÄÚÈÝÍ⣬»¹½«°ÑÆäÐÞ¸Äʱ¼äºÍ·ÃÎÊȨÏÞÒ²¸´ÖƵ½ÐÂÎļþÖС£
- r Èô¸ø³öµÄÔ´ÎļþÊÇһĿ¼Îļþ£¬´Ëʱcp½«µÝ¹é¸´ÖƸÃĿ¼ÏÂËùÓеÄ×ÓĿ¼ºÍÎļþ¡£´ËʱĿ±êÎļþ±ØÐëΪһ¸öĿ¼Ãû¡£
- l ²»×÷¿½±´£¬Ö»ÊÇÁ´½ÓÎļþ¡£
  ÐèҪ˵Ã÷µÄÊÇ£¬Îª·ÀÖ¹Óû§ÔÚ²»¾­ÒâµÄÇé¿öÏÂÓÃcpÃüÁîÆÆ»µÁíÒ»¸öÎļþ£¬ÈçÓû§Ö¸¶¨µÄÄ¿±êÎļþÃûÒÑ´æÔÚ£¬ÓÃcpÃüÁ±´Îļþºó£¬Õâ¸öÎļþ¾Í»á±»ÐÂÔ´Îļþ¸²¸Ç£¬Òò´Ë£¬½¨ÒéÓû§ÔÚʹÓÃcpÃüÁ±´Îļþʱ£¬×îºÃʹÓÃiÑ¡Ïî¡£
Àý×Ó£º
Cp -i file1 file2               (½«Îĵµ file1 ¸´ÖÆ³É file2 . –iΪÌáʾȷÈÏ¡£)
cp file1 dir1               ½«Îĵµ file1 ¸´ÖƵ½Ä¿Â¼ dir1 Ï£¬ÎļþÃûÈÔΪ file1.
cp /tmp/file1 .               ½«Ä¿Â¼ /tmp ϵÄÎĵµ file1¸´ÖƵ½ÏÖÐÐĿ¼Ï£¬µµÃûÈÔΪ file1.
cp /tmp/file1 file2               ½«Ä¿Â¼ /tmp ϵÄÎĵµ file1ÏÖÐÐĿ¼Ï£¬µµÃûΪfile2
cp -r dir1 dir2               (recursive copy) ¸´ÖÆÕû¸öĿ¼.ÈôĿ¼ dir2 ²»´æÔÚ£¬Ôò½«Ä¿Â¼dir1£¬¼°ÆäËùÓÐÎĵµºÍ×ÓĿ¼£¬¸´ÖƵ½Ä¿Â¼ dir2 Ï£¬ÐÂĿ¼Ãû³ÆΪdir1.ÈôĿ¼dir2²»´æÔÚ£¬Ôò½«dir1£¬¼°ÆäËùÓÐÎĵµºÍ×ÓĿ¼£¬¸´ÖÆΪĿ¼ dir2.
Ô­ÎĵØÖ·£ºhttp://zhidao.baidu.com/question/16522834.html


Ïà¹ØÎĵµ£º

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

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

´ÓºÎ´¦¿ªÊ¼ÔĶÁLinuxÔ´´úÂë(ת)

 ÏñLinuxÄÚºËÕâÑùÅÓ´ó¶ø¸´ÔӵijÌÐò¿´ÆðÀ´È·ÊµÈÃÈËÍû¶øÉú磬ËüÏóÒ»¸öºÜ´óµÄÇò£¬Ã»ÓÐÆðµãºÍÖյ㡣ÔÚ¶ÁÔ´´úÂëµÄ¹ý³ÌÖУ¬Äã»áÓöµ½ÕâÑùµÄÇé¿ö£¬µ±¶Áµ½Äں˵Äijһ²¿·ÖʱÓÖ»áÉæ¼°µ½ÆäËü¸ü¶àµÄÎļþ£¬µ±·µ»Øµ½Ô­À´µÄµØ·½Ïë¼ÌÐøÍù϶Áʱ£¬ÓÖÍüÁËÔ­À´¶ÁµÄÄÚÈÝ¡£ÔÚinternetÉÏ£¬ºÜ¶àÈËΪ´Ë¸¶³öÁ˺ܴóµÄŬÁ¦£¬ÖÆ×÷³öÁËÔ´´úÂëµ¼º½Æ÷£ ......

ÌØ´óϲѶ£ºÀ¥É½ÐùÔ¯Linux¿ª·ÅʵÑéÊÒÀ²£¡£¡£¡

 À¥É½ÐùÔ¯Linux¿ª·ÅʵÑéÊÒ
¼ò½é
        Ϊ·½±ã¹ã´óLinuxÈí¼þ¿ª·¢Õߣ¬ÐùÔ¯¸ß¶ËITÅàѵÖÐÐÄÓÚ2009Äê10ÔÂÉèÁ¢ÁËLinux¿ª·ÅʵÑéÊÒ£¬ÐùÔ¯Linux¿ª·ÅʵÑéÊÒÌṩÁËÍêÕûµÄLinux Èí¼þ¿ª·¢»·¾³£¬°üÀ¨£ºC/C++£¨GCC¡¢GDB£©¡¢make¡¢Java¡¢Python¡¢Perl¡¢C++ Boost¡¢C++ ACE¡¢C++ OTL¡¢Oracle¡¢M ......

ÐÞ¸ÄLinux¿ÉÖ§³ÖµÄsocket×î´óÁ¬½ÓÊý

 ÒýÓÃhttp://hi.baidu.com/fishzy0819/blog/item/76bc82347b94f681a61e1298.html
2009-10-25 15:43
×î½ü×ö¹«Ë¾·þÎñÆ÷³ÌÐò´Ówindowsµ½LinuxµÄÒÆÖ²¹¤×÷£¬ÎҵķþÎñÆ÷ʹÓõÄACEµÄEpollģʽ£¬Ö§³Ö2000¸öÁ¬½Ó¡£ÔÚLinuxϱàÒë·þÎñÆ÷³ÌÐòºó£¬ÔËÐУ¬±¨´íÁË¡£
²é
ÁË×ÊÁϺó·¢ÏÖÊÇ£¬ÔÚLinuxÏÂEpollģʽĬÈÏÖ»Ö§³Ö1024¸öÁ¬½Ó£ ......

LINUXϲ鿴Apache²¢·¢ÇëÇóÊý¼°ÆäTCPÁ¬½Ó״̬

 
LINUXϲ鿴Apache²¢·¢ÇëÇóÊý¼°ÆäTCPÁ¬½Ó״̬ ÊÕ²Ø
2007-7-20 18:30 ÕÅÑç
²é¿´httpd½ø³ÌÊý£¨¼´preforkģʽÏÂApacheÄܹ»´¦ÀíµÄ²¢·¢ÇëÇóÊý£©£º
LinuxÃüÁ
ps -ef | grep httpd | wc -l
·µ»Ø½á¹ûʾÀý£º
¡¡¡¡1388
¡¡¡¡±íʾApacheÄܹ»´¦Àí1388¸ö²¢·¢ÇëÇó£¬Õâ¸öÖµApache¿É¸ù¾Ý¸ºÔØÇé¿ö×Ô¶¯µ÷Õû£¬ÎÒÕâ×é·þÎñÆ÷Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ