pwd(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

pwd(1)

pwd(1)                           User Commands                          pwd(1)

NAME
       pwd - return working directory name

SYNOPSIS
       /usr/bin/pwd [-LP] [--logical] [--physical] [--help]

DESCRIPTION
       The pwd utility writes an absolute path name of the current working di‐
       rectory to standard output.


       The  Bourne  shell,  sh(1s),  and the Korn shells, ksh(1) and ksh88(1),
       also have a built-in pwd command.

OPTIONS
       The following options are supported:

       -P, --physical

           Display the physical name of the working directory. This is the de‐
           fault option if none is specified.


       -L, --logical

           Use the PWD environment variable as the name of the working  direc‐
           tory, if possible, even if it is a symbolic link. PWD must not con‐
           tain  "dot"  or  "dot-dot" components and must point to the current
           working directory if it is a symbolic link. If these conditions are
           not met, -P behavior is assumed.


       --help

           Display command usage and exit.



       If both -L and -P are specified, only the last entered option will  ap‐
       ply.

ENVIRONMENT VARIABLES
       See  environ(7) for descriptions of the following environment variables
       that affect the  execution  of  pwd:  LANG,  LC_ALL,  LC_MESSAGES,  and
       NLSPATH.

EXIT STATUS
       The following exit values are returned:

       0     Successful completion.


       >0    An error occurred.



       If  an error, other than a write error when writing to standard output,
       is detected, output will not be written to  standard  output.  In  such
       cases,  a diagnostic message will be written to standard error, and the
       exit status will not be 0.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE  VALUE  _  Availabilitysystem/core-os  _ CSIEnabled _ Interface
       StabilityCommitted _ StandardSee standards(7).


SEE ALSO
       cd(1), ksh(1), ksh88(1), pwdx(1),  sh(1s),  shell_builtins(1),  attrib‐
       utes(7), environ(7), standards(7)

DIAGNOSTICS
         pwd: cannot determine current directory!


NOTES
       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 cor‐
       rect this situation.

HISTORY
       Support for the -L, --logical, -P, --physical, and --help  options  was
       added  to  the  /usr/bin/pwd command in Oracle Solaris 11.1.17, and was
       backported to a Solaris 10 patch released in 2014.


       The /usr/bin/pwd command has been present in all  Sun  and  Oracle  re‐
       leases of Solaris.

Oracle Solaris 11.4               29 Nov 2022                           pwd(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3