Query: pwd
OS: netbsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PWD(1) BSD General Commands Manual PWD(1)NAMEpwd -- return working directory nameSYNOPSISpwd [-LP]DESCRIPTIONpwd writes the absolute pathname of the current working directory to the standard output. The following options are available: -L If the PWD environment variable is an absolute pathname that contains neither "/./" nor "/../" and references the current directory, then PWD is assumed to be the name of the current directory. -P Print the physical path to the current working directory, with symbolic links in the path resolved. The default for the pwd command is -P. pwd is usually provided as a shell builtin (which may have a different default).EXIT STATUSThe pwd utility exits 0 on success, and >0 if an error occurs.SEE ALSOcd(1), csh(1), ksh(1), sh(1), getcwd(3)STANDARDSThe pwd utility is expected to be conforming to IEEE Std 1003.1 (``POSIX.1''), except that the default is -P not -L.BUGSIn csh(1) the command dirs is always faster (although it can give a different answer in the rare case that the current directory or a con- taining directory was moved after the shell descended into it). pwd -L relies on the file system having unique inode numbers. If this is not true (e.g., on FAT file systems) then pwd -L may fail to detect that PWD is incorrect.BSDOctober 30, 2003 BSD
Related Man Pages |
---|
pwd(1) - osx |
pwd(1) - sunos |
pwd(1) - mojave |
pwd(1) - suse |
pwd(1) - opendarwin |
Similar Topics in the Unix Linux Community |
---|
variable under variable |
pwd & cd commands not working in shell script |
echo $PWD doesn't work |
Print the name of files in the directory using Perl |
Crontab help |