我正在更新.bash_profile,不幸的是,我进行了一些更新,现在我得到了:
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
-bash: tar: command not found
-bash: grep: command not found
-bash: cat: command not found
-bash: find: command not found
-bash: dirname: command not found
-bash: /preexec.sh.lib: No such file or directory
-bash: preexec_install: command not found
-bash: sed: command not found
-bash: git: command not found
我的bash_profile实际上会引入其他.sh文件(为它们提供源文件),因此我不确定到底是哪个修改引起的。
现在,如果我什至尝试并查看文件列表,我将得到:
>ls
-bash: ls: command not found
-bash: sed: command not found
-bash: git: command not found
关于如何跟踪错误源以及如何将终端用于列出文件等基本内容的任何提示?
-bash: sed: command not found -bash: git: command not found
/etc/environment
出在ssh -t root@<server-ip> "/bin/bash -c '/bin/mv /etc/environment /tmp/'"