HIER(7)
NAME
hier − file system hierarchy
DESCRIPTION
The following outline gives a quick tour through a representative HP-UX directory hierarchy. Some of the directories listed only appear with HP-UX versions which support certain optional commands or packages which use those directories. Some HP-UX versions add special directories not shown here.
/Root directory.
/binFrequently-used commands and those required to boot, restore, recover, and/or repair the system.
/devSpecial files (device files); see mknod(8).
/etcSystem administrative commands and configuration files.
/etc/newconfig
New (updated) versions of customizable (localizable) configuration files and shell scripts. Shipped here so as not to overwrite current versions. Copied to regular locations for newly installed systems. Administrators may wish to keep them around for later reference.
/libFrequently-used object code libraries and related utilities.
/lost+found
For connecting detached files; for use by fsck(8).
/tmpPlace to put temporary files (those normally with short lifetimes and which may be removed without notice).
/usersUser home directories; sometimes immediate, sometimes at lower levels.
/users/guest
Default home directory for user "guest"; see passwd(5). Directory exists for novice users; you may wish to remove it.
/usrLess-frequently-used commands and other miscellaneous things; historically, often a separate, mounted volume.
/usr/admSystem-administrative data files.
/usr/binLess-frequently-used commands and those not required to boot, restore, recover, and/or repair the system.
/usr/contrib
User-contributed (unsupported, internal) commands, files, etc. Files under this directory come from outside the local site or organization, e.g. from users groups, HP service engineers, etc. See /usr/local for local-site commands and files.
/usr/contrib/bin
User-contributed commands.
/usr/contrib/games
User-contributed games.
/usr/contrib/include
User-contributed include files. To include them, you must (in C) give a complete pathname, for example, #include "/usr/contrib/include/symtab.h".
/usr/contrib/lib
User-contributed libraries.
/usr/contrib/man/cat[1-8]
User-contributed manual entries, post-nroff form.
/usr/contrib/man/man[1-8]
User-contributed manual entries, pre-nroff form.
/usr/contrib/man/$LANG/cat[1-8]
User-contributed manual entries, formatted form for installed native languages. The LANG environment variable may take on values given in the /usr/lib/nls/config table.
/usr/contrib/man/$LANG/man[1-8]
User-contributed manual entries, unformatted form for installed native languages.
/usr/include
High-level C-language header files (shared definitions).
/usr/include/sys
Low-level (kernel-related) C-language header files.
/usr/libLess-frequently-used object code libraries, related utilities, miscellaneous data files, etc.
/usr/lib/acct
Certain system-administrative commands.
/usr/lib/cron
For cron(1) and at(1) scheduling information.
/usr/lib/graphics/c
Device-independent Graphics Library (DGL) special C-language include files. Optional on some systems.
/usr/lib/graphics/demos
DGL demonstration software.
/usr/lib/graphics/fortran
DGL special FORTRAN-language include files.
/usr/lib/graphics/pascal
DGL special Pascal-language include files.
/usr/lib/help
Data files for help(1).
/usr/lib/lex
Data files for lex(1).
/usr/lib/macros
Macro definition packages for nroff(1).
/usr/lib/nls
native language support
/usr/lib/nls/config
correspondence between integer language id and name
/usr/lib/nls/$LANG
Language definition (Character Set Support, Local Customs, and Messages) for installed native languages. The LANG environment variable may take on values given in the /usr/lib/nls/config table.
/usr/lib/spell
Data files for spell(1).
/usr/lib/tabset
Data files to set tabstops.
/usr/lib/term
Terminal initialization files.
/usr/lib/tmac
Macro definition packages for nroff(1).
/usr/lib/uucp[/∗]
Commands, configuration files, and working directories for uucp(1).
/usr/localSite-local commands, files, etc. Files under this directory come from inside the local site or organization. See /usr/contrib for non-local unsupported commands and files.
/usr/local/bin
Site-local commands.
/usr/local/games
Site-local games.
/usr/local/include
Site-local include files. To include them, you must (in C) give a complete pathname, for example, #include "/usr/local/include/symtab.h".
/usr/local/lib
Site-local libraries.
/usr/local/man/cat[1-8]
Site-local manual entries, post-nroff form.
/usr/local/man/man[1-8]
Site-local manual entries, pre-nroff form.
/usr/local/man/$LANG/cat[1-8]
Site-local manual entries, unformatted form for installed native languages. The LANG environment variable may take on values given in the /usr/lib/nls/config table.
/usr/local/man/$LANG/man[1-8]
Site-local manual entries, formatted form for installed native languages.
/usr/mailUser mailboxes.
/usr/manOn-line documentation.
/usr/man/cat[1-8]
Optional formatted (post-nroff) versions of on-line documentation for use by man(1).
/usr/man/man[1-8]
Unformatted (pre-nroff) versions of on-line documentation for use by man(1).
/usr/man/$LANG
On-line documentation for installed native languages. The LANG environment variable may take on values given in the /usr/lib/nls/config table.
/usr/man/$LANG/cat[1-8]
Formatted native language versions of on-line documentation for use by man(1).
/usr/man/$LANG/man[1-8]
Unformatted native language versions of on-line documentation for use by man(1).
/usr/newsLocal-system news articles for news(1).
/usr/preserve
Place where ex(1) and vi(1) save lost edit sessions until recovered.
/usr/spoolSpooled (queued) files for various programs.
/usr/spool/cron
Spooled jobs for cron(1) and at(1).
/usr/spool/cron/atjobs
Spooled jobs for at(1).
/usr/spool/lp
Control and working files for lp(1).
/usr/spool/lp/class
Printer class definition files.
/usr/spool/lp/interface
Printer interface shell scripts.
/usr/spool/lp/member
Printer class member definition files.
/usr/spool/lp/request
Spool directories for each logical destination.
/usr/spool/uucp
Queued work, lockfiles, logfiles, status files, and other files for uucp(1).
/usr/spool/uucppublic[/∗]
Publicly-accessible directory for use with uucp(1).
/usr/srcSource files. Only present on HP-UX implementations which support source.
/usr/src/cmd/∗
Source for commands. Simple command sources reside at the top level. Subdirectories are named after specific commands, e.g. /usr/src/cmd/cc, and contain the source for multi-file or otherwise complicated commands. Directory structure below here depends on the individual command; see the associated makefiles.
/usr/src/games/∗
Source for games. Simple game sources reside at the top level. Subdirectories are named after specific games, e.g. /usr/src/games/master, and contain the source for multi-file or otherwise complicated games. Directory structure below here depends on the individual game; see the associated makefiles.
/usr/src/head
Include files which are copied into /usr/include/∗.
/usr/src/lib
Source for libraries, in many subdirectories.
/usr/src/lib/libF77
Source for FORTRAN-77 miscellaneous (mostly math) libraries.
/usr/src/lib/libI77
Source for FORTRAN-77 I/O libraries.
/usr/src/lib/libPW
Source for Programmer’s Workbench libraries.
/usr/src/lib/libc
Source for standard C libraries.
/usr/src/lib/libcurses/∗
Source for curses (cursor control) libraries.
/usr/src/lib/libl
Source for lex(1) libraries.
/usr/src/lib/libm
Source for C math libraries.
/usr/src/lib/liby
Source for yacc(1) libraries.
/usr/tmpAlternate place to put temporary files; usually used when there may be very many of them or if they will be large.
SEE ALSO
ls(1), find(1), grep(1), whereis(1), hpnls(7).
HARDWARE DEPENDENCIES
Series 500 systems support shared libraries loaded by the kernel at powerup time. They reside in the directory /etc/sslibs.
Some directories include commands or files not supported on all HP-UX implementations.
Hewlett-Packard — last mod. May 11, 2021