PWR(1) COMMAND REFERENCE PWR(1)
NAME
pwr - print current working root directory
SYNOPSIS
pwr [ -h ] [ -l ]
DESCRIPTION
Pwr prints the name of the current working root directory.
When working on another machine via the distributed file
system, the root directory of the current directory is not
`/'. Instead, it is `//machine/', where `machine' is the
name of the machine that the current directory resides on.
Because of the way the distributed file system works, full
pathnames which do not begin with a machine name are taken
from the local (or originating) host. This command makes it
easy to determine the full pathname of a file on the remote
machine.
By default, if the current directory resides on the local
machine, pwr will print `/'.
OPTIONS
-h Print only the name of the current machine. This option
implies the -l option.
-l Print the full name of the root directory
(`//machine/'), even if it is on the local machine.
EXAMPLES
To list the contents of the directory `/bin' on the current
machine, the following command may be used.
ls `pwr`bin
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
SEE ALSO
pwd(1), pwd(1sh), getwd(3c), getwroot(3c).
Printed 10/17/86 1
%%index%%
na:72,78;
sy:150,123;
de:273,804;
op:1077,298;
ex:1375,198;
rv:1573,400;
se:1973,155;
%%index%%000000000119