kcpath(1M) kcpath(1M)
NAME [Toc] [Back]
kcpath - print kernel configuration pathnames
SYNOPSIS [Toc] [Back]
kcpath [-b]
kcpath -d [config]
kcpath -x [config]
DESCRIPTION [Toc] [Back]
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 [Toc] [Back]
-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 [Toc] [Back]
kcpath returns zero for success. It returns non-zero and prints a
diagnostic message if an error occurs.
EXAMPLES [Toc] [Back]
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
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
kcpath(1M) kcpath(1M)
SEE ALSO [Toc] [Back]
kconfig(5).
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 [ Back ] |