开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜