ls command not working
i am using cent os 5.2 on a hosting having plesk as i have ssh access i was working with the apache ant and my java path was not getting setup
so i accidentally did this
PATH=$(echo $PATH | sed -e 's;:\?/home/user/bin;;' -e 's;/home/user/bin:\?;;')
If you need, you can re-add it at the front of the list with:
Or you can re-add it at the end of the list with:
after that my ls command is not working and nothing is working
no command is working
can anybody help
how can i fix the whole thing
Thats some accident...
Whats in your path at the moment? What is the output of
try `/bin/echo $PATH`
seems pretty obvious that you borked your $PATH so that it doesn't include the basic bin directories where your system's commands are. Put them back in $PATH.
if you can't figure that out, break your connection, log in again, and don't do that again.
If you exit the ssh and ssh back in, the $PATH should be reset to whatever the login uses.
This might help. On my Centos 5.3 my default PATH is
|All times are GMT -5. The time now is 05:15 PM.|