Difference between revisions of "Sysctl"

From GhostBSD Wiki
Jump to: navigation, search
Line 73: Line 73:
  
 
[[Category:How To]]
 
[[Category:How To]]
 +
[[Category:Kernel]]

Revision as of 12:48, 25 February 2020

Welcome to Icon Disti GhostBSD.png Sysctl.
Kernel Competence
Sysctl Kldstat Third-party Kernel Modules
Kernel Modules FreeBSD Ports: Kld Kenv
Compiling a new GhostBSD kernel
Back to the Icon Disti GhostBSD.pngSystem

Introduction

The sysctl utility retrieves kernel state and allows processes with appropriate privilege to set kernel state. The state to be retrieved or set is described using a “Management Information Base” (“MIB”) style name, described as a dotted set of components.
With this page we will not replace the man page. But will give some examples.

Usage

The following list is only an excerpt.

Use sysctl plus the following NAME

NAME Description
kern.ostype FreeBSD
kern.osrelease 12.1-STABLE
kern.osrevision 199506
kern.osreldate 1201512
You get the same result with the command: uname -U
kern.version FreeBSD 12.1-STABLE GENERIC
kern.hostname slughorn.ghostbsd-pc.home
kern.clockrate { hz = 1000, tick = 1000, profhz = 8128, stathz = 127
kern.boottime Fri Feb 21 18:58:27 2020 (example)
kern.bootfile /boot/kernel/kernel
kern.corefile %N.core
kern.logsigexit 1
security.bsd.suser_enabled 1
security.bsd.see_other_uids 1
security.bsd.unprivileged_proc_debug 1
security.bsd.unprivileged_read_msgbuf 1
vm.loadavg { 0,59 0,52 0,54 }
hw.machine amd64
hw.model AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
hw.ncpu 2
hw.byteorder 1234
hw.physmem 3972182016
hw.usermem 3445424128
hw.machine_arch amd64
hw.realmem 4294967296
user.cs_path /usr/bin:/bin:/usr/sbin:/sbin
Back to Icon Disti GhostBSD.pngHow To