Centos7 solves the problem of unable to use tab to complete automatically
Ifconfig cannot be completed with tab key
Ifconfig doesn’t work
Just install net tools
[root@localhost ~]# yum -y install net-tools
[root@localhost ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.220.132 netmask 255.255.255.0 broadcast 192.168.220.255
inet6 fe80::4310:d566:7af5:f620 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:49:44:8a txqueuelen 1000 (Ethernet)
RX packets 11769 bytes 16082745 (15.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5209 bytes 340821 (332.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8 bytes 704 (704.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 704 (704.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The tab key cannot be completed
CentOS needs to be installed manually because it does not install the automatic completion package when the installation is minimized[root@localhost ~]# yum -y install bash-completion
[root@localhost ~]# bash