安装autojump之后,重新打开终端变成:
Last login: Wed Nov 3 23:43:21 on ttys000
ssh root@47.1.59.204
[~]$ ssh root@47.1.59.204
root@47.1.59.204's password:
Welcome to Alibaba Cloud Elastic Compute Service !
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Wed Nov 3 23:39:26 2021 from 112.50.84.33
/root/.autojump/share/autojump/autojump.zsh:22: command not found: uname
/usr/libexec/grepconf.sh:行5: grep: 未找到命令
/usr/libexec/grepconf.sh:行5: grep: 未找到命令
/usr/libexec/grepconf.sh:行5: grep: 未找到命令
/root/.oh-my-zsh/oh-my-zsh.sh:56: command not found: mkdir
/root/.oh-my-zsh/oh-my-zsh.sh:118: command not found: rm
/root/.oh-my-zsh/oh-my-zsh.sh:127: compinit: function definition file not found
detect-clipboard:33: command not found: uname
/root/.oh-my-zsh/lib/cli.zsh:105: command not found: compdef
/root/.oh-my-zsh/lib/completion.zsh:78: bashcompinit: function definition file not found
/root/.oh-my-zsh/lib/directories.zsh:32: command not found: compdef
/root/.oh-my-zsh/lib/termsupport.zsh:109: add-zsh-hook: function definition file not found
/root/.oh-my-zsh/lib/termsupport.zsh:110: add-zsh-hook: function definition file not found
/root/.oh-my-zsh/lib/theme-and-appearance.zsh:2: colors: function definition file not found
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:23: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:105: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:135: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:138: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:142: is-at-least: function definition file not found
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:156: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:161: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:171: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:181: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:190: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:196: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:283: is-at-least: function definition file not found
/root/.autojump/share/autojump/autojump.zsh:22: command not found: uname
/root/.zshrc:103: compinit: function definition file not found
➜ ~ chsh -s /bin/bash
zsh: command not found: chsh
所有的命令都提示:command not found
为什么?
看看你的 PATH 环境变量是否被改变了
已经无法查看了
任何命令都无法正常输入