Use the complete command of linux to automatically complete the declaration
This article will explain in detail the automatic completion statement on the use of linux's complete command. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The complete command declares how to read parameters for each NAME name. Without the option, the existing completion declaration is printed in a format that can be reused as input.
Syntax format: complete [parameters]
Common parameters:
Reference example
Print an existing completion declaration in a reusable format:
[root@linuxcool] # complete-p
For commands that are not defined by the completion declaration, set the default completion action:
[root@linuxcool] # complete-D
Set the completion action for the "empty" command-- for the completion of blank lines:
[root@linuxcool] # complete-E
Remove the completion declaration for each NAME name, or if no NAME name is provided, remove all completion statements:
[root@linuxcool ~] # complete-r this is the end of the automatic completion statement on using linux's complete command. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.