United States-English |
|
|
HP-UX Reference > Ppwd(1)HP-UX 11i Version 3: February 2007 |
|
NAMEpwd — working directory name DESCRIPTIONpwd prints the path name of the working (current) directory. Optionspwd recognizes the following options:
If both -L and -P are specified, the last one applies. If neither -L nor -P is specified, the default option is:
EXTERNAL INFLUENCESFor information about the UNIX Standard environment, see standards(5). Environment VariablesLC_MESSAGES determines the language in which messages are displayed. If LC_MESSAGES is not specified in the environment or is set to the empty string, the value of LANG is used as a default for each unspecified or empty variable. If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, pwd behaves as if all internationalization variables are set to "C". See environ(5). DIAGNOSTICS
EXAMPLESIf your home directory is /mnt/staff and the command cd camp/nevada is executed from the home directory, typing pwd produces the following display: /mnt/staff/camp/nevada In the following example, a symbolic link, /mnt/vts/symdir, points to the /mnt/vts/realdir directory. Then the pwd -P command displays the actual directory: $ cd /mnt/vts/symdir $ /usr/bin/pwd -P /mnt/vts/realdir The pwd -L command displays the directory with the symbolic link: $ cd /mnt/vts/symdir $ /usr/bin/pwd -L /mnt/vts/symdir In the following example, there is no symbolic link. The displayed directory is the same for both the -L and -P options. $ mkdir /mnt/vts/onedir $ /usr/bin/pwd -L /mnt/vts/onedir $ /usr/bin/pwd -P /mnt/vts/onedir |
Printable version | ||
|