¡¾×ª¡¿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¿ª·¢µÄÏà¹Ø¸ÚλºÜ¶à£¬µ«³¤ÆÚÒÔÀ´Linux¿ª·¢Ã»ÓÐͳһµÄ¿ª·¢Æ½Ì¨£¬´ó¶àÊýµÄ¿ª·¢Õ߶¼Ö±½ÓʹÓÃVI¡¢GCCµÈÃüÁîÐй¤¾ß£¬ÕâÑùÆäʵ²»ÀûÓÚ´óÐÍÏîÄ¿µÄ¿ª·¢¡£ 1.ÒÀÈ»ÊÇÊìϤµÄ¿ª·¢Á÷³Ì ÔÚLinux²Ù×÷ϵͳÖУ¬CÓïÑÔ³ÌÐòµÄ¿ª·¢ºÍÆäËû»·¾³ÀàËÆ£¬³ÌÐòÉú³ÉÖ÷Òª·Ö³É±àÒë¡¢»ã±à¡¢Á¬½ÓµÈ¼¸¸ö²½Öè¡£ ± ......
Ò»°ãÔÚlinuxÉϲ¿ÊðÏîĿʱ£¬Ö±½Ó°ÑÔÚwindowÉϱàÒë³öÀ´µÄjarÎļþ²¿ÊðÉÏÈ¥£¬ÔÙÔËÐоͿÉÒÔÁË£¬µ«ÊǽñÌìÅöµ½µÄÎÊÌâ £º
Exception in thread "main" java.lang.NoClassDefFoundError: DataServer
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: DataServer ......
ÏñLinuxÄÚºËÕâÑùÅÓ´ó¶ø¸´ÔӵijÌÐò¿´ÆðÀ´È·ÊµÈÃÈËÍû¶øÉú磬ËüÏóÒ»¸öºÜ´óµÄÇò£¬Ã»ÓÐÆðµãºÍÖյ㡣ÔÚ¶ÁÔ´´úÂëµÄ¹ý³ÌÖУ¬Äã»áÓöµ½ÕâÑùµÄÇé¿ö£¬µ±¶Áµ½Äں˵Äijһ²¿·ÖʱÓÖ»áÉæ¼°µ½ÆäËü¸ü¶àµÄÎļþ£¬µ±·µ»Øµ½ÔÀ´µÄµØ·½Ïë¼ÌÐøÍù϶Áʱ£¬ÓÖÍüÁËÔÀ´¶ÁµÄÄÚÈÝ¡£ÔÚinternetÉÏ£¬ºÜ¶àÈËΪ´Ë¸¶³öÁ˺ܴóµÄŬÁ¦£¬ÖÆ×÷³öÁËÔ´´úÂëµ¼º½Æ÷£ ......
À´Ô´: ChinaUnix²©¿Í ¡¡ÈÕÆÚ£º 2009.05.12 07:02¡¡(¹²ÓÐ0ÌõÆÀÂÛ) ÎÒÒªÆÀÂÛ
LinuxϵͳÆô¶¯Á÷³Ì
¿ªÊ¼-à³õʼ»¯BIOS-àÖ´ÐÐÆô¶¯¼ÓÔØÆ÷--àÔØÈëÄÚºË--àÆô¶¯init·þÎñ-à½áÊø
¿ªÊ¼£º
Á÷³Ì·ÖÎö£º
Ò»£º³õʼ»¯BIOS
1£º¼ì²âËùÓÐÍⲿÉ豸
2£ºÑ°ÕÒÆô¶¯´ÅÅÌ
¶þ£ºÖ´ÐÐÆô¶¯¼ÓÔØÆ÷
1£ºB ......
from: http://www.pcstu.com/system/Linux/20090804/65873.html
±¾ÎĽéÉÜÏÂlinux atÃüÁîµÄÁíÒ»¸ö×÷ÓãºlinuxÏÂʹÓÃlinux atÃüÁʱ¹Ø»ú¡£
Ê×ÏÈ´´½¨Ò»¸öÎļþ,дÈ룺
#!/bin/sh
shutdown -h now
±£´æΪpowerÎļþ.Ö®ºó
chmod +x powerÖ®ºó¾ÍÄÜʹÓÃlinux atÃüÁʱ¹Ø»úÁË.
µ«ÊÇÐèÒªÓÐrootȨÏÞ²ÅÄܹػú,
ËùÒÔÐè ......