Problems with simple bash commands in the shell
I need to add java to my PATH on one of my Linux servers, to do this I edited the bashrc and added,
PATH=/usr/local/jdk1.6.0/bin
export P开发者_运维问答ATH
Since then I have not been able to use simple bash commands like ls
nano
locate
cp
is there any way I can fix this? The OS of the server is CentOS 5 with Plesk 9 (64-bit), can anyone help me recover basic functionality in my terminal?
You have to add the java path to your PATH variable, not set PATH to only include the java path
PATH=$PATH:/usr/local/jdk1.6.0/bin
export PATH
精彩评论