Home  >  Article  >  System Tutorial  >  Solve the problem that CentOS7’s Tab key cannot complete commands

Solve the problem that CentOS7’s Tab key cannot complete commands

WBOY
WBOYforward
2024-01-17 13:30:131387browse

I was doing an experiment on centOS today and found that the customary tab key completion method used under Ubuntu could not be used. So I was very curious. After searching for information and testing it myself, I recorded the feasible solution as follows:

1) First, you need to run the following command in the terminal:

# yum install bash-completion//You can also use wildcards to install: yum install bash-c*

Or you can install some initialization package groups

yum -y groupinstall Base Compatibility libraries Debugging Tools Dial-up Networking support Hardware monitoring utilities Performance Tools Development tools

If the above command does not work, you can try the following command

2) If the above command does not work, you can try the following command

yum upgrade

3) If the above two commands still don’t work, you can restart the machine or log in again

Since I used scureCRT during the experiment, I chose to use the login command to log in again, and then sudo -i to enter root mode, you can use the tab completion command

login//Re-login

The above is the detailed content of Solve the problem that CentOS7’s Tab key cannot complete commands. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete