Changeset View
Changeset View
Standalone View
Standalone View
bin/pwd/pwd.1
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
Logical current working directory. | Logical current working directory. | ||||
.El | .El | ||||
.Sh EXIT STATUS | .Sh EXIT STATUS | ||||
.Ex -std | .Ex -std | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
Show current working directory with symbolic links resolved: | Show current working directory with symbolic links resolved: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
$ /bin/pwd | $ /bin/pwd | ||||
/usr/home/fernape | /usr/src/sys/kern | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
Show the logical current directory. | Show the logical current directory. | ||||
Then use | Then use | ||||
.Xr file 1 | .Xr file 1 | ||||
to inspect the | to inspect the | ||||
.Pa /home | .Pa /sys | ||||
directory: | directory: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
$ /bin/pwd -L | $ /bin/pwd -L | ||||
/home/fernape | /sys/kern | ||||
$ file /home | $ file /sys | ||||
/home: symbolic link to usr/home | /sys: symbolic link to usr/src/sys | ||||
.Ed | .Ed | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr builtin 1 , | .Xr builtin 1 , | ||||
.Xr cd 1 , | .Xr cd 1 , | ||||
.Xr csh 1 , | .Xr csh 1 , | ||||
.Xr realpath 1 , | .Xr realpath 1 , | ||||
.Xr sh 1 , | .Xr sh 1 , | ||||
.Xr getcwd 3 | .Xr getcwd 3 | ||||
Show All 25 Lines |