Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7672

Beginners • Re: sysctl.conf have change, how to work around...

$
0
0
I tested after with "# sysctl -p" and get the answer:
sysctl: cannot open "/etc/sysctl.conf": No such file or directory

How can I check if it is working any how?
DanneA, Thailand
sysctl is automatically loaded at system boot by the systemd-sysctl service.

If you want to check the current values of ALL values, use 'sysctl -a'. Check the value of a single setting with 'sysctl <name>', such as 'sysctl net.ipv4.ip_forward'. If you want to load in another file of settings, such as I described above, use 'sysctl -p /etc/sysctl.d/ip-forward.conf''. But note that the added file will be loaded automatically the next time the system restarts.

Like other Linux commands, a complete description of the command can be found using the 'man' command. 'man sysctl' in this case. The output is complete, but terse. Read it several times, and refer to it often. Until you dream about it. :lol:

Statistics: Posted by bls — Thu May 28, 2026 6:33 pm



Viewing all articles
Browse latest Browse all 7672

Latest Images

Trending Articles



Latest Images