26
3
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?
4Can you run commands directly? For example
/bin/ls
? – DavidPostill – 2015-11-13T10:13:32.077yes, I can run /bin/ls – Ferenjito – 2015-11-13T10:14:18.033
13Then you should be able to run
/bin/vi
and fix the files where you broke the path. – DavidPostill – 2015-11-13T10:15:54.257