關機:
shutdown -h now #立刻關機重啓,工作中常用
shutdown -h +1 #1分鐘後關機
init 0
halt #立即停止系統,需要人工關閉電源
halt -p #
poweroff #立即停止系統,並且關閉電源
重啓:
reboot #工作中常用
shutdown -r now #工作中常用
shutdown -r +1 #一分鐘後重啓
init 6
註銷:
logout
exit #工作中常用
ctrl+d #工作中常用
shutdown -h now #立刻關機重啓,工作中常用
shutdown -h +1 #1分鐘後關機
init 0
halt #立即停止系統,需要人工關閉電源
halt -p #
poweroff #立即停止系統,並且關閉電源
reboot #工作中常用
shutdown -r now #工作中常用
shutdown -r +1 #一分鐘後重啓
init 6
logout
exit #工作中常用
ctrl+d #工作中常用
kubectl config get-contexts kubectl config use-context <context-name> kubectl config current-context