linux - Command not working in EC2? -
none of commands working in ec2 machine.
-bash: id: command not found -bash: id: command not found -bash: id: command not found -bash: tty: command not found -bash: mktemp: command not found -bash: $tmp: ambiguous redirect -bash: rm: command not found -bash: vim: command not found
i guess did changes in /etc/environment setting path of java , after time not able run of commands in next login.
anyone please help, should in order run these commands again?
i screwed appending path using export path=$path: in /etc/environment file, not aware $path not work there in /etc/environment.
how found problem ?
a- used command "which ls" showed me ls command location , /usr/bin , shows path not contain this.
how solved problem ?
a- none of command working not vi command there option left : path=$path:/usr/bin export path
and after doing , able sudo on machine.
i hope ,it can helpful other person mistakenly screwed his/her environment.
Comments
Post a Comment