°Ô½Ã¹° 1,369°Ç
   
alias cp overwrite ¸Þ¼¼Áö ³ªÅ¸³ªÁö ¾Ê°Ô Çϱâ
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2013-03-07 (¸ñ) 15:11 Á¶È¸ : 6519
±ÛÁÖ¼Ò :
                                
http://cafe.naver.com/smileserv/57

¸®´ª½º¿¡¼­ cp ¸í·É½Ã 
º¹»ç ´ë»óÁö¿¡ µ¿ÀÏÇÑ ÆÄÀÏÀÌ Á¸ÀçÇÏ´Â °æ¿ì 
overwrite ÇÏ°Ú´À³Ä¶ó°í ±ÍÂú°Ô? ¹°¾îº¼ ¶§°¡ ÀÖ´Ù.

cp -arp /usr/local/apache/conf/httpd.conf /usr/local/src
cp: overwrite `/usr/local/src/httpd.conf'?

 cp ¸í·É ¿É¼ÇÁß -f ¸¦ Á൵ ¸¶Âù°¡Áö·Î ¹°¾îº»´Ù.

  -f, --force                  if an existing destination file cannot be
                                 opened, remove it and try again

ÀÌÀ¯´Â Á¢¼ÓÇÑ °èÁ¤ÀÇ .bashrc ÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ cp ¸í·ÉÀÌ ¾Ë¶ó¾Æ½ÌÀÌ µÇ¾î Àֱ⠶§¹®Àε¥...

alias cp='cp -iv'


´ÙÀ½ µÎ °¡Áö ¹æ¹ýÀ¸·Î ¾È¹¯°í ³Ñ¾î°¡°Ô ÇÒ ¼ö ÀÖ´Ù.


¹æ¹ý1) cp ¸í·ÉÀÇ full °æ·Î¸¦ ÇÔ²² ½áÁØ´Ù.

/bin/cp -arp /usr/local/apache/conf/httpd.conf /usr/local/src


¹æ¹ý2) cp ¸í·É ¾Õ¿¡ ¾Ë¸®¾Æ½ÌÀ» ȸÇÇÇϵµ·Ï \ À» ÇÔ²² ½áÁØ´Ù.

\cp -arp /usr/local/apache/conf/httpd.conf /usr/local/src


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.