Disable the auto complete feature of the BASH shell

Posted In Shell - By Tum. On Tuesday, June 16th, 2009 With 0 Comments

bash
ข้อดีของ bash shell อีกข้อหนึ่งคือ feature auto complete ซึ่งจะทำให้เราไม่ต้องพิมพ์ตัวอักษรทั้งหมด ในการรันคำสั่งหรือการพิมพ์ชื่อไฟล์

ในบทความนี้จะพูดถึงวิธีการปิดการใช้งาน auto complete ซึ่งมีวิธีการปิดอยู่สองแบบด้วยกัน คือ

1. ปิดการใช้งาน auto complete กับทุก user โดยให้เพิ่มข้อความด้านล่างเข้าไปที่ไฟล์ /etc/inputrc

2. การปิดการใช้งานเฉพาะ user สามารถทำได้ตามวิธีด้านล่าง สมมติปิดการใช้งาน user1

หลังจากทำการแก้ไขเรียบร้อยแล้วจะมีผลก็ต่อเมื่อ user ได้ Login เข้าสู่ระบบใหม่

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="">

*