Difference between revisions of "Sysctl"

From GhostBSD Wiki
Jump to: navigation, search
(Created page with "{{welcome}} ==Introduction== The '''sysctl''' utility retrieves kernel state and allows processes with appropriate privilege to set kernel state. The state to be retrieved or...")
 
(Applications)
Line 6: Line 6:
  
 
==Applications==
 
==Applications==
 +
 +
The following list is only an excerpt.
  
 
Use '''sysctl''' plus the following NAME  
 
Use '''sysctl''' plus the following NAME  
Line 14: Line 16:
 
! scope="col" style="width: 350px;"|'''Description'''  
 
! scope="col" style="width: 350px;"|'''Description'''  
 
|-
 
|-
|
+
|kern.ostype||FreeBSD
|
+
|-      
 +
|kern.osrelease||12.1-STABLE
 +
|-      
 +
|kern.osrevision||199506
 +
|-
 +
|kern.osreldate ||1201512
 +
|-
 +
|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
 
|-
 
|-
 
!colspan="2"|'''Back to ''' [[image:Icon Disti GhostBSD.png|50px|link=How To]]'''How To'''
 
!colspan="2"|'''Back to ''' [[image:Icon Disti GhostBSD.png|50px|link=How To]]'''How To'''

Revision as of 16:28, 21 February 2020

Welcome to Icon Disti GhostBSD.png Sysctl.

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.

Applications

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
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