Re: [linux] what is the (sysctl?) command to simply list the files being consulted?

2019-09-15 Thread Peter Sjöberg
On 2019-09-15 1:23 p.m., Robert P. J. Day wrote:
> On Sun, 15 Sep 2019, Robert P. J. Day wrote:
> 
>>
>>   i know from all the docs that you can set sysctl variables in a
>> variety of places, including /usr/lib/sysctl.d, /etc/sysctl.d and so
>> on ... what is the command to simply *display* the order of file
>> consultation without actually processing the files?
>>
>>   i could *swear* i found a command to do that a couple weeks ago, now
>> i've simply forgotten it. thoughts?
> 
>   i may have misremembered ... "sysctl --system" does show that
> information but also tries to apply all the settings it finds. i was
> after something just like that that did not actually process the
> files, just printed them out.
how about cheating a little
sysctl -r "^-4711" --system
only apply the parameter named "-4711" (don't expect that to be a valid
parameter name) but still show the paths examined

an ugly way to do it - which I can't recommend, run it as a normal user
and ignore the errors
su peters -c "/usr/sbin/sysctl --system" 2>/dev/null

/ps



signature.asc
Description: OpenPGP digital signature


Re: [linux] what is the (sysctl?) command to simply list the files being consulted?

2019-09-15 Thread Robert P. J. Day
On Sun, 15 Sep 2019, Robert P. J. Day wrote:

>
>   i know from all the docs that you can set sysctl variables in a
> variety of places, including /usr/lib/sysctl.d, /etc/sysctl.d and so
> on ... what is the command to simply *display* the order of file
> consultation without actually processing the files?
>
>   i could *swear* i found a command to do that a couple weeks ago, now
> i've simply forgotten it. thoughts?

  i may have misremembered ... "sysctl --system" does show that
information but also tries to apply all the settings it finds. i was
after something just like that that did not actually process the
files, just printed them out.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] what is the (sysctl?) command to simply list the files being consulted?

2019-09-15 Thread Robert P. J. Day


  i know from all the docs that you can set sysctl variables in a
variety of places, including /usr/lib/sysctl.d, /etc/sysctl.d and so
on ... what is the command to simply *display* the order of file
consultation without actually processing the files?

  i could *swear* i found a command to do that a couple weeks ago, now
i've simply forgotten it. thoughts?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org