HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

k
kcpath(1M) kcpath(1M)
NAME
kcpath - print kernel configuration pathnames
SYNOPSIS
kcpath [-b]
kcpath -d [config]
kcpath -x [config]
DESCRIPTION
kcpath prints the pathnames associated with a kernel configuration. If config is specified,
kcpath gives
information about the saved kernel configuration named config. Otherwise,
kcpath gives information
about the currently running configuration. See kconfig(5) for information on saved kernel configurations.
Options
-b kcpath will print the basename of the currently running kernel.
-d [config] kcpath will print the full pathname of the directory containing the configuration.
-x [config] kcpath will print the full pathname of the kernel executable for the configuration.
If no options are specified, kcpath acts as if -b was specified.
RETURN VALUE
kcpath returns zero for success. It returns non-zero and prints a diagnostic message if an error occurs.
EXAMPLES
Print the basename of the currently running kernel:
$ kcpath -b
vmunix
Print the directory containing the currently running kernel:
$ kcpath -d
/stand/current
Print the pathname of the currently running kernel executable:
$ kcpath -x
/stand/current/vmunix
Print the directory containing the kernel for "str1013":
$ kcpath -d str1013
/stand/str1013
Print the pathname of the kernel executable for "str1013":
$ kcpath -x str1013
/stand/str1013/vmunix
SEE ALSO
kconfig(5).
HP-UX 11i Version 2: December 2007 Update 1 Hewlett-Packard Company 431