Amazon Linux Server, connected with SSH:
I tried to change the PATH for the apache user by making some changes in /etc/environment (PATH=$PATH:/opt/openoffice4/program
) and /etc/sysconfig/httpd (export PATH = ${PATH:$PATH:}/opt/openoffice4/program
).
Then I rebooted.
Now, I can not do anything, even ls -l
leads to -bash: ls: command not found
What can I do to regain control?
/bin/ls
?/bin/vi
and fix the files where you broke the path.