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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -