Change the behavior of the copy (cp) command overwrite the existing file without prompt

Posted In System - By Tum. On Saturday, September 8th, 2007 With 0 Comments

แก้ในไฟล์ $HOME/.bashrc ครับ เนื่องจาก redhat ใส่ alias cp=’cp -i’ ไว้ครับ


ดังนั้นแสดงว่าใส่ option -r ไม่มีความหมายครับ วิธีแก้ไขให้คอมเม้นด้วย # ที่ alias cp=’cp -i’ ครับ และทำการ Logout และ login เข้ามาใหม่ด้วยนะครับ และคราวนี้ท่านก็สามารถใช้งานคำสั่ง cp ด้วย option -f ได้แล้วครับ
ตัวอย่าง
#cp -f /file /existing file

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*