Saya memperbarui .bash_profile saya, dan sayangnya saya membuat beberapa pembaruan dan sekarang saya mendapatkan:
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 saya benar-benar menarik di file .sh lainnya (sumber mereka) jadi saya tidak yakin modifikasi yang mungkin menyebabkan ini.
Sekarang jika saya bahkan mencoba dan ke daftar file, saya mendapatkan:
>ls
-bash: ls: command not found
-bash: sed: command not found
-bash: git: command not found
Adakah tips tentang cara melacak sumber kesalahan, dan bagaimana cara menggunakan terminal untuk hal-hal dasar seperti daftar file dll?
-bash: sed: command not found -bash: git: command not found
/etc/environment
, gunakan perintah berikut (dalam centos 6):ssh -t root@<server-ip> "/bin/bash -c '/bin/mv /etc/environment /tmp/'"