1998-10-31 02:53:12 +00:00
|
|
|
################################################################################
|
|
|
|
# Thelp DDisplay command help
|
|
|
|
|
|
|
|
help [topic [subtopic]]
|
|
|
|
?
|
|
|
|
|
|
|
|
The help command displays help on commands and their usage.
|
|
|
|
|
|
|
|
In command help, a term enclosed with <...> indicates a value as
|
|
|
|
described by the term. A term enclosed with [...] is optional,
|
|
|
|
and may not be required by all forms of the command.
|
|
|
|
|
2003-03-07 03:24:38 +00:00
|
|
|
Some commands may not be available. Use the '?' command to list
|
1998-10-31 02:53:12 +00:00
|
|
|
most available commands.
|
|
|
|
|
2003-05-05 07:33:12 +00:00
|
|
|
If needed, disable the use of ACPI with:
|
|
|
|
|
|
|
|
unset acpi_load
|
2004-07-29 20:09:25 +00:00
|
|
|
set hint.acpi.0.disabled="1"
|
2003-05-05 07:33:12 +00:00
|
|
|
|
1998-10-31 02:53:12 +00:00
|
|
|
################################################################################
|
|
|
|
# Tautoboot DBoot after a delay
|
|
|
|
|
|
|
|
autoboot [<delay> [<prompt>]]
|
|
|
|
|
|
|
|
Displays <prompt> or a default prompt, and counts down <delay> seconds
|
|
|
|
before attempting to boot. If <delay> is not specified, the default
|
|
|
|
value is 10.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tboot DBoot immediately
|
|
|
|
|
1999-03-14 19:55:01 +00:00
|
|
|
boot [<kernelname>] [-<arg> ...]
|
1998-10-31 02:53:12 +00:00
|
|
|
|
|
|
|
Boot the system. If arguments are specified, they are added to the
|
|
|
|
arguments for the kernel. If <kernelname> is specified, and a kernel
|
|
|
|
has not already been loaded, it will be booted instead of the default
|
|
|
|
kernel.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Techo DEcho arguments
|
|
|
|
|
|
|
|
echo [-n] [<message>]
|
|
|
|
|
|
|
|
Emits <message>, with no trailing newline if -n is specified. This is
|
|
|
|
most useful in conjunction with scripts and the '@' line prefix.
|
|
|
|
|
|
|
|
Variables are substituted by prefixing them with $, eg.
|
|
|
|
|
|
|
|
echo Current device is $currdev
|
|
|
|
|
|
|
|
will print the current device.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tload DLoad a kernel or module
|
|
|
|
|
|
|
|
load [-t <type>] <filename>
|
|
|
|
|
|
|
|
Loads the module contained in <filename> into memory. If no other
|
|
|
|
modules are loaded, <filename> must be a kernel or the command will
|
|
|
|
fail.
|
|
|
|
|
|
|
|
If -t is specified, the module is loaded as raw data of <type>, for
|
|
|
|
later use by the kernel or other modules. <type> may be any string.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tls DList files
|
|
|
|
|
|
|
|
ls [-l] [<path>]
|
|
|
|
|
|
|
|
Displays a listing of files in the directory <path>, or the root
|
|
|
|
directory of the current device if <path> is not specified.
|
|
|
|
|
|
|
|
The -l argument displays file sizes as well; the process of obtaining
|
|
|
|
file sizes on some media may be very slow.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tlsdev DList devices
|
|
|
|
|
|
|
|
lsdev [-v]
|
|
|
|
|
|
|
|
List all of the devices from which it may be possible to load modules.
|
|
|
|
If -v is specified, print more details.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tlsmod DList modules
|
|
|
|
|
|
|
|
lsmod [-v]
|
|
|
|
|
|
|
|
List loaded modules. If [-v] is specified, print more details.
|
|
|
|
|
1999-02-01 06:08:21 +00:00
|
|
|
################################################################################
|
|
|
|
# Tmore DPage files
|
|
|
|
|
|
|
|
more <filename> [<filename> ...]
|
|
|
|
|
|
|
|
Show contents of text files. When displaying the contents of more,
|
|
|
|
than one file, if the user elects to quit displaying a file, the
|
|
|
|
remaining files will not be shown.
|
|
|
|
|
1998-10-31 02:53:12 +00:00
|
|
|
################################################################################
|
|
|
|
# Tpnpscan DScan for PnP devices
|
|
|
|
|
|
|
|
pnpscan [-v]
|
|
|
|
|
|
|
|
Scan for Plug-and-Play devices. This command is normally automatically
|
|
|
|
run as part of the boot process, in order to dynamically load modules
|
|
|
|
required for system operation.
|
|
|
|
|
|
|
|
If the -v argument is specified, details on the devices found will
|
|
|
|
be printed.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tset DSet a variable
|
|
|
|
|
|
|
|
set <variable name>
|
|
|
|
set <variable name>=<value>
|
|
|
|
|
|
|
|
The set command is used to set variables.
|
|
|
|
|
|
|
|
################################################################################
|
1998-12-15 14:21:30 +00:00
|
|
|
# Tset Sautoboot_delay DSet the default autoboot delay
|
1998-10-31 02:53:12 +00:00
|
|
|
|
|
|
|
set autoboot_delay=<value>
|
|
|
|
|
|
|
|
Sets the default delay for the autoboot command to <value> seconds.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tset Sbootfile DSet the default boot file set
|
|
|
|
|
2002-07-07 20:40:31 +00:00
|
|
|
set bootfile=<filename>[;<filename>...]
|
1998-10-31 02:53:12 +00:00
|
|
|
|
2002-07-07 20:40:31 +00:00
|
|
|
Sets the default set of kernel boot filename(s). It may be overridden
|
|
|
|
by setting the bootfile variable to a semicolon-separated list of
|
|
|
|
filenames, each of which will be searched for in the module_path
|
|
|
|
directories. The default bootfile set is "kernel".
|
1998-10-31 02:53:12 +00:00
|
|
|
|
1998-12-15 14:21:30 +00:00
|
|
|
################################################################################
|
1998-12-15 14:32:17 +00:00
|
|
|
# Tset Sboot_askname DPrompt for root device
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
set boot_askname
|
|
|
|
|
|
|
|
Instructs the kernel to prompt the user for the name of the root device
|
|
|
|
when the kernel is booted.
|
|
|
|
|
2004-09-30 13:09:00 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Sboot_cdrom DMount root file system from CD-ROM
|
|
|
|
|
|
|
|
set boot_cdrom
|
|
|
|
|
|
|
|
Instructs the kernel to try to mount the root file system from CD-ROM.
|
|
|
|
|
1998-12-15 14:21:30 +00:00
|
|
|
################################################################################
|
1998-12-15 14:32:17 +00:00
|
|
|
# Tset Sboot_ddb DDrop to the kernel debugger (DDB)
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
set boot_ddb
|
|
|
|
|
|
|
|
Instructs the kernel to start in the DDB debugger, rather than
|
2004-09-30 13:09:00 +00:00
|
|
|
proceeding to initialize when booted.
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
################################################################################
|
2004-09-30 13:09:00 +00:00
|
|
|
# Tset Sboot_gdb DSelect gdb-remote mode for the kernel debugger
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
set boot_gdb
|
|
|
|
|
|
|
|
Selects gdb-remote mode for the kernel debugger by default.
|
|
|
|
|
2004-09-30 13:09:00 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Sboot_multicons DUse multiple consoles
|
|
|
|
|
|
|
|
set boot_multicons
|
|
|
|
|
|
|
|
Enables multiple console support in the kernel early on boot.
|
|
|
|
In a running system, console configuration can be manipulated
|
|
|
|
by the conscontrol(8) utility.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tset Sboot_serial DUse serial console
|
|
|
|
|
|
|
|
set boot_serial
|
|
|
|
|
|
|
|
Force the use of a serial console even when an internal console
|
|
|
|
is present.
|
|
|
|
|
1998-12-15 14:21:30 +00:00
|
|
|
################################################################################
|
1998-12-15 14:32:17 +00:00
|
|
|
# Tset Sboot_single DStart system in single-user mode
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
set boot_single
|
|
|
|
|
2004-09-30 13:09:00 +00:00
|
|
|
Prevents the kernel from initiating a multi-user startup; instead,
|
|
|
|
a single-user mode will be entered when the kernel has finished
|
|
|
|
device probes.
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
################################################################################
|
1998-12-15 14:32:17 +00:00
|
|
|
# Tset Sboot_verbose DVerbose boot messages
|
1998-12-15 14:21:30 +00:00
|
|
|
|
|
|
|
set boot_verbose
|
|
|
|
|
|
|
|
Setting this variable causes extra debugging information to be printed
|
|
|
|
by the kernel during the boot phase.
|
|
|
|
|
1998-10-31 02:53:12 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Sconsole DSet the current console
|
|
|
|
|
|
|
|
set console[=<value>]
|
|
|
|
|
|
|
|
Sets the current console. If <value> is omitted, a list of valid
|
|
|
|
consoles will be displayed.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tset Scurrdev DSet the current device
|
|
|
|
|
|
|
|
set currdev=<device>
|
|
|
|
|
|
|
|
Selects the default device. Syntax for devices is odd.
|
|
|
|
|
1999-04-20 21:15:13 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Sinit_path DSet the list of init candidates
|
|
|
|
|
1999-12-07 18:31:43 +00:00
|
|
|
set init_path=<path>[:<path>...]
|
1999-04-20 21:15:13 +00:00
|
|
|
|
|
|
|
Sets the list of binaries which the kernel will try to run as initial
|
|
|
|
process.
|
|
|
|
|
|
|
|
|
1998-10-31 02:53:12 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Smodule_path DSet the module search path
|
|
|
|
|
2002-07-07 20:40:31 +00:00
|
|
|
set module_path=<path>[;<path>...]
|
1998-10-31 02:53:12 +00:00
|
|
|
|
|
|
|
Sets the list of directories which will be searched in for modules
|
2003-03-07 03:24:38 +00:00
|
|
|
named in a load command or implicitly required by a dependency. The
|
2004-08-06 15:06:06 +00:00
|
|
|
default module_path is "/boot/modules" with the kernel directory
|
|
|
|
prepended.
|
1998-10-31 02:53:12 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tset Sprompt DSet the command prompt
|
|
|
|
|
|
|
|
set prompt=<value>
|
|
|
|
|
|
|
|
The command prompt is displayed when the loader is waiting for input.
|
|
|
|
Variable substitution is performed on the prompt. The default
|
|
|
|
prompt can be set with:
|
|
|
|
|
|
|
|
set prompt=\$currdev>
|
|
|
|
|
1998-11-13 23:53:02 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Srootdev DSet the root filesystem
|
|
|
|
|
|
|
|
set rootdev=<path>
|
|
|
|
|
|
|
|
By default the value of $currdev is used to set the root filesystem
|
|
|
|
when the kernel is booted. This can be overridden by setting
|
|
|
|
$rootdev explicitly.
|
|
|
|
|
1999-01-21 22:03:16 +00:00
|
|
|
################################################################################
|
|
|
|
# Tset Stunables DSet kernel tunable values
|
|
|
|
|
2003-03-07 03:24:38 +00:00
|
|
|
Various kernel tunable parameters can be overridden by specifying new
|
1999-01-21 22:03:16 +00:00
|
|
|
values in the environment.
|
|
|
|
|
|
|
|
set kern.ipc.nmbclusters=<value> NMBCLUSTERS
|
|
|
|
|
|
|
|
Set the number of mbuf clusters to be allocated. The value
|
|
|
|
cannot be set below the default determined when the kernel
|
|
|
|
was compiled.
|
|
|
|
|
2003-03-04 23:46:29 +00:00
|
|
|
set kern.ipc.nsfbufs=<value> NSFBUFS
|
|
|
|
|
|
|
|
Set the number of sendfile buffers to be allocated. This
|
|
|
|
overrides the value determined when the kernel was compiled.
|
|
|
|
|
2004-01-27 15:59:38 +00:00
|
|
|
set vm.kmem_size=<value> VM_KMEM_SIZE
|
1999-01-21 22:03:16 +00:00
|
|
|
|
|
|
|
Sets the size of kernel memory (bytes). This overrides
|
2003-03-04 23:46:29 +00:00
|
|
|
the value determined when the kernel was compiled.
|
1999-01-21 22:03:16 +00:00
|
|
|
|
2002-11-13 09:37:43 +00:00
|
|
|
set machdep.disable_mtrrs=1
|
|
|
|
|
|
|
|
Disable the use of i686 MTRRs (i386 only)
|
|
|
|
|
1999-02-03 09:07:33 +00:00
|
|
|
set net.inet.tcp.tcbhashsize=<value> TCBHASHSIZE
|
|
|
|
|
|
|
|
Overrides the compile-time set value of TCBHASHSIZE or
|
|
|
|
the preset default of 512. Must be a power of 2.
|
|
|
|
|
2003-01-15 05:26:10 +00:00
|
|
|
hw.syscons.sc_no_suspend_vtswitch=<value>
|
|
|
|
|
|
|
|
Disable VT switching on suspend.
|
|
|
|
|
|
|
|
value is 0 (default) or non-zero to enable.
|
|
|
|
|
1999-07-02 20:38:05 +00:00
|
|
|
set hw.physmem=<value> MAXMEM (i386 only)
|
|
|
|
|
|
|
|
Limits the amount of physical memory space available to
|
|
|
|
the system to <value> bytes. <value> may have a k, M or G
|
|
|
|
suffix to indicate kilobytes, megabytes and gigabytes
|
|
|
|
respectively. Note that the current i386 architecture
|
|
|
|
limits this value to 4GB.
|
|
|
|
|
|
|
|
On systems where memory cannot be accurately probed,
|
|
|
|
this option provides a hint as to the actual size of
|
|
|
|
system memory (which will be tested before use).
|
|
|
|
|
2002-11-13 09:43:53 +00:00
|
|
|
set hw.pci.enable_io_modes=<value>
|
|
|
|
|
|
|
|
Enable PCI resources which are left off by some BIOSes
|
|
|
|
or are not enabled correctly by the device driver.
|
|
|
|
|
|
|
|
value is 1 (default), but this may cause problems with
|
|
|
|
some peripherals. Set to 0 to disable.
|
|
|
|
|
2004-09-24 09:33:48 +00:00
|
|
|
set vfs.root.mountdelay=<value>
|
|
|
|
|
|
|
|
Delay root partition mount if there is no required provider.
|
|
|
|
|
|
|
|
value is a maximum number of seconds to wait for provider to
|
|
|
|
show up (default is 5 seconds).
|
|
|
|
|
1998-10-31 02:53:12 +00:00
|
|
|
################################################################################
|
|
|
|
# Tshow DShow the values of variables
|
|
|
|
|
|
|
|
show [<variable>]
|
|
|
|
|
|
|
|
Displays the value of <variable>, or all variables if not specified.
|
|
|
|
Multiple paths can be separated with a semicolon.
|
|
|
|
|
|
|
|
################################################################################
|
1999-01-22 23:50:14 +00:00
|
|
|
# Tinclude DRead commands from a script file
|
1998-10-31 02:53:12 +00:00
|
|
|
|
1999-02-01 06:08:21 +00:00
|
|
|
include <filename> [<filename> ...]
|
1998-10-31 02:53:12 +00:00
|
|
|
|
|
|
|
The entire contents of <filename> are read into memory before executing
|
|
|
|
commands, so it is safe to source a file from removable media.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tread DRead input from the terminal
|
|
|
|
|
|
|
|
read [-t <value>] [-p <prompt>] [<variable name>]
|
|
|
|
|
|
|
|
The read command reads a line of input from the terminal. If the
|
|
|
|
-t argument is specified, it will return nothing if no input has been
|
|
|
|
received after <value> seconds. (Any keypress will cancel the
|
|
|
|
timeout).
|
|
|
|
|
|
|
|
If -p is specified, <prompt> is printed before reading input. No
|
|
|
|
newline is emitted after the prompt.
|
|
|
|
|
|
|
|
If a variable name is supplied, the variable is set to the value read,
|
|
|
|
less any terminating newline.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tunload DRemove all modules from memory
|
|
|
|
|
|
|
|
unload
|
|
|
|
|
|
|
|
This command removes any kernel and all loaded modules from memory.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Tunset DUnset a variable
|
|
|
|
|
|
|
|
unset <variable name>
|
|
|
|
|
|
|
|
If allowed, the named variable's value is discarded and the variable
|
|
|
|
is removed.
|
|
|
|
|
|
|
|
################################################################################
|