In the 1990s s when Linux and DOS coexist in their own base scripts, Linux Shell had one of the most insignificant but practical little functions, namely Automatic completion of commands. However, the dummies of DOS have never learned how to use them until they die. Linux's insignificant little tradition has continued so far. Although seemingly insignificant, it actually greatly improves the input efficiency and accuracy of the Administrator. If you need to implement the auto-completion function in your own scripts, you only need to write a script similar to the following. After each user login, you can use the source file. This example is on the company's channel machine. You can log on to the relevant server by name, but the server name is long and hard to remember. Every input is troublesome. So with this automatic completion script: [plain] tongdaoji () {local cur prev opts COMPREPLY = () cur = "$ {COMP_WORDS [COMP_CWORD]}" prev = "$ {COMP_WORDS [COMP_CWORD-1]}" opts = "java. vm swift. sa openstack. zf shanghai venusweb database "if [[$ {cur} = *]; then COMPREPLY = ($ (compgen-W" $ {opts} "-- $ {cur })) return 0 fi} complete-F tongdaoji e put this script in a place that can be automatically executed at each login, such ~ /. Bashrc. Then, you only need to enter e o <TAB> to get e openstack. zf.