Executing binaries in /usr/sbin/ seems to be broken
Dear fellow Linux users,
I am pretty new to the linux area so what I am trying to do is executing binary files in the /usr/sbin/ directory. No matter what I do, if I want to execute any program at all I always get Bash: command not found I have tried nstat and many other programs but the same message shows up. I am using Eeedora and logged me in as superuser. Could anyone please help me, that would be very grateful! |
If the dir is not in your PATH type:
./filename.bin to make it run. To see your PATH type echo $PATH |
Quote:
I thought my PATH was actually /usr/sbin but it turned out that this was not included at all. Why is it? And is there any possibility to add /usr/sbin to my PATH? Thanks for sharing your knowledge. |
Have a look here.
Don't forget to do it as root, otherwise (I think) you'll give user access to sbin! BTW, as a matter of caution, are you really logged in as root or as user and then gone to su? |
/usr/sbin contains binaries that normally would only be used by root. To use them, simply prefix the path eg
/usr/sbin/binary-you-want Personally i wouldn't mess with the PATH var here, the arrangement is there for a reason. |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 08:53 AM. |