开发者

Problems with simple bash commands in the shell

开发者 https://www.devze.com 2023-01-05 01:33 出处:网络
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

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

精彩评论

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