跳过导航链接 | |
退出打印视图 | |
手册页第 1 部分:用户命令 Oracle Solaris 11.1 Information Library (简体中文) |
- return working directory name
/usr/bin/pwd
The pwd utility writes an absolute path name of the current working directory to standard output.
Both the Bourne shell, sh(1), and the Korn shells, ksh(1) and ksh88(1), also have a built-in pwd command.
See environ(5) for descriptions of the following environment variables that affect the execution of pwd: LANG, LC_ALL, LC_MESSAGES, and NLSPATH.
The following exit values are returned:
Successful completion.
An error occurred.
If an error is detected, output will not be written to standard output, a diagnostic message will be written to standard error, and the exit status will not be 0.
See attributes(5) for descriptions of the following attributes:
|
cd(1), ksh(1), ksh88(1), sh(1), shell_builtins(1), attributes(5), environ(5), standards(5)
pwd: cannot determine current directory!
Consult your network administrator.
If you move the current directory or one above it, pwd may not give the correct response. Use the cd(1) command with a full path name to correct this situation.