Menangani tab autocomplete bash terminal yang tidak berfungsi

bismillah ,..

normal nya bash terminal di linux memiliki fungsi autocomplete bukan hanya untuk path auto complete tapi juga untuk command namu terdak fresh install linux server kehilangan fungsi itu , nah untuk menangani nya bisa mencoba melalukan langkah berikut

  • Install atau Reinstall modul bash-completion
[email protected]:~# apt install bash-completion 
Reading package lists… Done 
Building dependency tree Reading state information… Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 168 kB of archives.
After this operation, 1394 kB of additional disk space will be used.
Get:1 Mirrorlist [34 B]Get:2 bionic/main amd64 bash-completion all 1:2.8-1ubuntu1 [168 kB]<br>Fetched 168 kB in 2s (70.2 kB/s)
Selecting previously unselected package bash-completion.<br>(Reading database … 28860 files and directories currently installed.)
Preparing to unpack …/bash-completion_1%3a2.8-1ubuntu1_all.deb …<br>Unpacking bash-completion (1:2.8-1ubuntu1) …
Setting up bash-completion (1:2.8-1ubuntu1) …
find: '/etc/bash_completion.d/': No such file or directory
Processing triggers for man-db (2.8.3-2ubuntu0.1) 
  • Enable modul bash-autocomplete di file .bashrc
[email protected]:~# pico ~/.bashrc

uncomment (hilangkan # ) di bagian berikut

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion

save kemudian logout dari terminal (atau remote ssh) kemudian login lagi

kemduian test .

semoga bermanfaat 🙂

No Comments, Be The First!

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.