配置kubectl、helm、crictl等命令自动补全 #apt-get install -y bash-completion#locate bash_completion/usr/share/bash-completion/bash_completion#source/usr/share/bash-completion/bash_completion#source<(kubectl completion bash)#kubectl completion bash >/etc/bash_completion.d/kubectl#source<(helm completion ...
kubectl自动补全 # 安装k8s命令提示yum install -y bash-completionsource /usr/share/bash-completion/bash_completionsource <(kubectl completion bash)echo "source <(kubectl completion bash)" >> ~/.bashrc 测试:输入kube, 按tab键,展示可能的命令列表 输入kubectl, 连续按2次tab键,展示可能的子命令列表 ...
completion 输出shell完成代码(Shell自动提示/补全) | Output shell completion code checkpoint 检查一个或多个正在运行的容器 | Checkpoint one or more running containers help, h 显示命令列表或一个命令的帮助 | Shows a list of commands or help for one command GLOBAL OPTIONS: –config value, -c value...
1. rocky linux 重启网卡命令(350) 2. 记批处理修改计算机名一次蠢操作造成电脑指定的域不存在或无法联系(247) 3. 如何解决执行crictl命令报错的问题(59) 4. -bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8)(26) 免费AI助手 ...
OS版本:Ubuntu 20.04.2 LTS 配置kubectl、helm、crictl等命令自动补全 # apt-get install -y bash-completion # locate bash_completion /usr/share/bash-completion/bash_completion # source /usr/share/bash-completion/bash_completion # source <(kubectl completion bash) ...