In CentOS6, pressing the tab key can auto-completion, but when CentOS7 is minimally installed, there is no auto-completion package installed, and a package needs to be installed to solve bash-completion.
1. Check if the bash-completion package is installed on the system.
2. Find it on yum
Three, yum install bash-completion package
yum -y install bash-completion