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