แก้ในไฟล์ $HOME/.bashrc ครับ เนื่องจาก redhat ใส่ alias cp=’cp -i’ ไว้ครับ
ดังนั้นแสดงว่าใส่ option -r ไม่มีความหมายครับ วิธีแก้ไขให้คอมเม้นด้วย # ที่ alias cp=’cp -i’ ครับ และทำการ Logout และ login เข้ามาใหม่ด้วยนะครับ และคราวนี้ท่านก็สามารถใช้งานคำสั่ง cp ด้วย option -f ได้แล้วครับ
ตัวอย่าง
#cp -f /file /existing file
คำค้นยอดนิยม: linux command copy cp overwrite, unix command cp, centos cp -rf overwrite, command linux copy file, cp command option, linux commands copy file, unix cp
Related posts:
- Find Out Which RPM Installed a Specific File by rpm or yum Command การตรวจสอบว่าไฟล์หรือคำสั่งต่างๆมาจาก package ไหนบ้าง สามารถทำได้ไม่ยาก โดยจะใช้คำสั่ง rpm หรือ yum...
- How to use wpa_cli command wpa_cli command เป็น command ที่มีอยู่ใน wpa_supplicant package ซึ่ง...
- การใช้ Man command เมื่อบทที่แล้วผมได้พูดถึงการใช้ help ไป 2 ตัวด้วยกัน คือ whatis และ...
- Force fsck on the next boot sequence เมื่อต้องการให้ Linux ทำ file system check ทุก partition...
- Map Of The Linux File System ผมมีรูปรายละเอีบดของ directory มาฝากครับ สำหรับมือใหม่ Ubuntu และสาวก Ubuntu ที่บางท่านที่ยังไม่ทราบรายละเอียดต่างๆของ...


September 8th, 2007
Tum.
Posted in 