您好,登錄后才能下訂單哦!
# centos
yum install -y bash-completion
# Ubuntu
apt install bash-completion
# 生效命令補全
source /usr/share/bash-completion/bash_completion
# mac
$ brew install bash-completion
# 生效命令補全
$ source $(brew --prefix)/etc/bash_completion
# 可以測試docker 等其它很多命令
docker tab 建
[root@node02 ~]# docker
attach config create exec history import kill logout node port push rm save service stats system trust version
build container diff export image info load logs pause ps rename rmi search stack stop tag unpause volume
commit cp events help images inspect login network plugin pull restart run secret start swarm top update wait
# linux
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
#或者
echo "source <(kubectl completion bash)" >> /etc/profile
# mac
source <(kubectl completion bash)
# 測試
[root@node02 ~]# kubectl tab鍵
annotate apply autoscale completion cordon delete drain explain kustomize options port-forward rollout set uncordon
api-resources attach certificate config cp describe edit expose label patch proxy run taint version
api-versions auth cluster-info convert create diff exec get logs plugin replace scale top wait
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。