NAME
kmpath — retrieve kernel name and associated kernel configuration information
SYNOPSIS
/usr/sbin/kmpath [-k]
/usr/sbin/kmpath -c [kernel_name]
/usr/sbin/kmpath -i [kernel_name]
DESCRIPTION
The
kmpath
command is obsolete and superseded by the
kcpath(1M)
command. Users are encouraged to migrate to
kcpath(1M).
The
kmpath
command will be removed in a future release of HP-UX.
The behavior of some of
kmpath's
options have changed and they are noted in the appropriate sections below.
kmpath
retrieves the main kernel file name and path information of the
currently running kernel.
kmpath
also retrieves the configuration directory of the current
or specified kernel.
Each kernel configuration consists of a kernel executable and a number of
other files including dynamically loadable kernel modules. These files
are all stored in a directory which represents the kernel configuration.
If no options are specified,
kmpath
returns the full path of the executable file for the kernel that was
most recently booted. Note that the executable file may no longer be
at that path, if changes have been made since boot.
Options
The
kmpath
options have the following meanings:
- -k
Return the base name of the executable file of the currently running kernel.
- -c [kernel_name]
Return the pathname of a kernel configuration directory.
If
kernel_name
is not specified, returns the pathname of the directory for the current
kernel configuration. If
kernel_name
is specified, returns the pathname of the directory that contains
the specified kernel.
- -i [kernel_name]
This option is retired and will not return any output.