11. CentOS 7 - Bash Shell Auto Completion
Contents
CentOS does not install autocompletion support for all tools by default, so we need to install it manually.
Check If We Have Bash Completion Installed
We can use the following command to verify:
|
|
We won’t see any output if it hasn’t been installed, so we need to install this package:
Install
|
|
Although it is installed, it has not yet been loaded into the running bash, so we need to use the source command to load them into the bash:
Reload
|
|
Experiment
Now we can try typing yum and then pressing the tab key twice:
|
|
We can see a list of auto-complete recommendations for this command.
We can also try automatic completion of yum parameters:
|
|
All right, that’s all the auto-complete information. See reference for more information.
References Bash completion is very incomplete on CentOS 7, RHEL / CentOS Linux install and activate Bash completion
Author Dong Chen
LastMod Tue Feb 12 2019