Files
Kubernetes/部署文档/组件安装/Kubectl/Kubectl安装命令自动补全工具.md
T
2026-11-18 03:10:25 +08:00

447 B

本文作者:丁辉

Kubectl安装命令自动补全工具

官方文档

安装 bash-completion

  • Ubuntu

    apt-get install bash-completion
    
  • Centos

    yum install bash-completion
    

启动 kubectl 自动补全功能

echo 'source <(kubectl completion bash)' >>~/.bashrc
source ~/.bashrc