Commands not woking
Hi,
Commands not woking, its shows the message "command not found" even for ls command. I can't execute any commands in CLI,How can I solve the problem ? regards Anil |
does it work if you specify the full path to the command?
ie: Code:
$ /bin/ls Code:
$ echo $PATH Check your .bashrc and .bash_profile as well as /etc/bashrc for the PATH variable. It should go a little something like this (but possibly different) Code:
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:~/bin/:/usr/local/bin:/usr/local/sbin:/usr/local/usr/bin/:/root/bin |
In addition, how about giving us some details? Just saying "It doesn't work" doesn't do much good when you're trying to determine what the problem is.
http://www.catb.org/~esr/faqs/smart-questions.html |
I am using centos5.5, using bash shell. I can't login in GUI its showing an error
"Your session only lasted less than 10 sec" /etc/gdm/Presession/Default:Registering your session with u tmp........(~/.xsession-errors file). When I login in CLI(ctrl+alt+f1) as root shows one message like Sh:gzip:command not found Bad character height 0 The result of echo $PATH is /usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/root/bin So I have to export PATH=$PATH:/bin:/usr/local/bin I checked the files .bashrc ,.bash_profile and /etc/bashrc , there is no changes. |
I hope, it will help.
http://www.cyberciti.biz/faq/linux-u...get-rid-of-it/ |
All times are GMT -5. The time now is 08:32 PM. |