HPlogo HP-UX Reference > K

kcpath(1M)

HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

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).