Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-26-2003, 04:09 AM
|
#1
|
Member
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105
Rep:
|
Is konsole different under KDE 3.1
I guess I have a problem with my KDE 3.1, when I open a console under KDE and write
ldconfig
for instance it gives an error, (this is same for other commands under /sbin)
file or command not found
however it works well if I do
/sbin/ldconfig
but isn't /sbin in the path? if I am not using KDE, I can call
ldconfig
directly. I guess I must add /sbin to a configuration file of KDE3.1. Am I right? If I am how should I correct this?
thank you for your help...
|
|
|
09-26-2003, 06:04 AM
|
#2
|
Member
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840
Rep:
|
I have never heard this before. Maybe you are logging in as a different user and switching over to root using su?
If that is the case you have to use su - <Enter> in order for root's environment to be imported. Then you can just type ldconfig and it will work.
Am I correct?
|
|
|
09-26-2003, 06:43 AM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep:
|
You can test that by typing
and look for /sbin.
Please remember that commands are case sensitive ...
|
|
|
10-02-2003, 07:18 AM
|
#4
|
Member
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105
Original Poster
Rep:
|
I wrote
echo $PATH
and I couldn't see /sbin there, it seems that it is missing
how can I add /sbin to the PATH?
|
|
|
10-02-2003, 07:26 AM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep:
|
Type
Code:
export PATH=$PATH:/sbin
and test whether it works.
To make it permanent, edit the original PATH declaration. For individual users it is set in ~/.bash but there is also a global .bash, I just don't remember where it lies ... (locate .bash )
|
|
|
10-06-2003, 04:40 PM
|
#6
|
Member
Registered: Aug 2003
Location: Tampere-FINLAND
Distribution: Mandrake 10.1
Posts: 105
Original Poster
Rep:
|
Thanks JZL240I-U, I guess you solved the problem I made the PATH permanent by adding the line to .bash_profile file which is located in my home directory. Now everything is fine.
Thanks again..
|
|
|
All times are GMT -5. The time now is 06:21 AM.
|
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
|
|