sysctl command

I am not sure if this is the right forum to be asking this question, let me know if its not.

When run sysctl by itself my OpenSUSE 13.1 tells me I need to run the command as super user and that it’s located in /usr/sbin/

So when I do a sudo sysctl -a or without the -a and enter in my admin password it comes back any says “sudo: sysctl: command not found”.

If I try and run it from the /usr/sbin/ folder I get the same message.

When I do an LS for sysctl I see in /usr/sbin/

I need help figuring out why this command refuses to exist. LOL

Sudo does not have /usr/sbin nor ./ in path by default.

sudo /usr/sbin/sysctl

Interesting. I am running 13.1 and it tells me sysctl is in /sbin. Can you check this out?

Thanks that worked! :slight_smile:

On 2014-09-21 00:16, john hudson wrote:
>
> Interesting. I am running 13.1 and it tells me sysctl is in /sbin. Can
> you check this out?


Telcontar:~ # l /usr/sbin/sysctl
lrwxrwxrwx 1 root root 12 Feb 26  2014 /usr/sbin/sysctl -> /sbin/sysctl*
Telcontar:~ #

In both, kind of :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)