Definition:

  • display/set kernel parammeters at runtime

Synopsis:

  • sysctl [options] [variable[=value]] [...]
  • sysctl -p [file or regexp] [...]

List of options:

  • -a, --all
    • Display all values currently available.
  • -e, --ignore
    • Use this option to ignore errors about unknown keys.
  • -w, --write var[=value]
    • Use this option when all arguments prescribe a key to be set.
  • -p [FILE], --load[=FILE]
    • Load in sysctl settings from the file specified or etc>sysctl.conf if none given. Specifying as filename means reading data from standard input.
    • Using this option will mean arguments to sysctl are files, which are read in the order they are specified. The file argument may be specified as regular expression.
  • -r, --pattern pattern
    • Only apply settings that match pattern.
    • The pattern uses extended regular expression syntax.