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... |
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? |
You can test that by typing
Code:
echo $PATH Please remember that commands are case sensitive ... |
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? |
Type
Code:
export PATH=$PATH:/sbin 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 ;)) |
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 03:59 PM. |