pwd man page on NetBSD

Man page or keyword search:  
man Server   9087 pages
apropos Keyword Search (all sections)
Output format
NetBSD logo
[printable version]

PWD(1)			  BSD General Commands Manual			PWD(1)

NAME
     pwd — return working directory name

SYNOPSIS
     pwd [-LP]

DESCRIPTION
     pwd 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 con‐
	     tains neither "/./" nor "/../" and references the current direc‐
	     tory, then PWD is assumed to be the name of the current direc‐
	     tory.

     -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 STATUS
     The pwd utility exits 0 on success, and >0 if an error occurs.

SEE ALSO
     cd(1), csh(1), ksh(1), sh(1), getcwd(3)

STANDARDS
     The pwd utility is expected to be conforming to IEEE Std 1003.1
     (“POSIX.1”), except that the default is -P not -L.

BUGS
     In csh(1) the command dirs is always faster (although it can give a dif‐
     ferent answer in the rare case that the current directory or a containing
     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.

BSD			       October 30, 2003				   BSD
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net