Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-04-2009, 04:13 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2009
Posts: 8
Rep:
|
Getting bash to login as root and recognize commands like "vi" and "locate"
The subject line pretty much says it all. I reinstalled my CentOS 5.2 OS today, updated yum and bash and started trying to locate and edit files. Each time I run "locate [name]" or "vi [file]", I get "command not found".
Also, no matter what I do, log off, reboot, whatever, I get only "-bash-3.2#" on which to execute commands rather than "[root@hostname~]" and I can't seem to set the hostname because bash won't recognize the commands or allow me to edit files! I did FIND that the server recognizes the hostname but, even after rebooting and logging back onto my SSH, I still only get "-bash-3.2#", I couldn't fix the problem.
Please help so I can move on with my life. Thanks.
April
|
|
|
|
05-04-2009, 05:25 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Hi, and welcome to LQ!
There could be several underlying issues. - Some apps simply didn't get installed ...
- for some reason bash isn't evaluating some of the normal startup-files
- permissions/ownerships on relevant files are screwy
What do you get when you do
?
Cheers,
Tink
|
|
|
|
05-04-2009, 09:21 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2009
Posts: 8
Original Poster
Rep:
|
Quote:
Originally Posted by Tinkster
Hi, and welcome to LQ!
There could be several underlying issues. - Some apps simply didn't get installed ...
- for some reason bash isn't evaluating some of the normal startup-files
- permissions/ownerships on relevant files are screwy
What do you get when you do
?
Cheers,
Tink
|
Thank you for your willingness to help. I'd like to get this resolved.
The output from echo $PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Let me know what you think. I can "vi" anything so I can't read any files.
April
|
|
|
|
05-04-2009, 10:41 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
What does
show you?
And
?
Cheers,
Tink
|
|
|
|
05-04-2009, 10:51 PM
|
#5
|
|
Member
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165
Rep:
|
Are you able to find the executables under /usr/bin ?
Quote:
|
ls /usr/bin/ | grep -e vim -e locate
|
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|