1pwd(1) User Commands pwd(1)
2
3
4
6 pwd - return working directory name
7
9 /usr/bin/pwd
10
11
13 The pwd utility writes an absolute path name of the current working
14 directory to standard output.
15
16
17 Both the Bourne shell, sh(1), and the Korn shells, ksh(1) and ksh93(1),
18 also have a built-in pwd command.
19
21 See environ(5) for descriptions of the following environment variables
22 that affect the execution of pwd: LANG, LC_ALL, LC_MESSAGES, and
23 NLSPATH.
24
26 The following exit values are returned:
27
28 0 Successful completion.
29
30
31 >0 An error occurred.
32
33
34
35 If an error is detected, output will not be written to standard output,
36 a diagnostic message will be written to standard error, and the exit
37 status will not be 0.
38
40 See attributes(5) for descriptions of the following attributes:
41
42
43
44
45 ┌─────────────────────────────┬─────────────────────────────┐
46 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Availability │SUNWcsu │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │CSI │Enabled │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Interface Stability │Committed │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │Standard │See standards(5). │
55 └─────────────────────────────┴─────────────────────────────┘
56
58 cd(1), ksh(1), ksh93(1), sh(1), shell_builtins(1), attributes(5), envi‐
59 ron(5), standards(5)
60
62 ``Cannot open ..'' and ``Read error in ..'' indicate possible file sys‐
63 tem trouble and should be referred to a UNIX system administrator.
64
66 If you move the current directory or one above it, pwd may not give
67 the correct response. Use the cd(1) command with a full path name to
68 correct this situation.
69
70
71
72SunOS 5.11 2 Nov 2007 pwd(1)