LinuxReviws.org --get your your Linux knowledge
> Linux Reviews > Manual Pages (man) >

pwd

print name of current/working directory


  1. pwd.1.man
  2. pwd.9.man


1. pwd.1.man

Manpage of PWD

PWD

Section: User Commands (1)
Updated: October 2011
Index Return to Main Contents
 

NAME

pwd - print name of current/working directory  

SYNOPSIS

pwd [OPTION]...  

DESCRIPTION

Print the full filename of the current working directory.

-L, --logical
use PWD from environment, even if it contains symlinks
-P, --physical
avoid all symlinks
--help
display this help and exit
--version
output version information and exit

NOTE: your shell may have its own version of pwd, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports.  

AUTHOR

Written by Jim Meyering.  

REPORTING BUGS

Report pwd bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report pwd translation bugs to <http://translationproject.org/team/>  

COPYRIGHT

Copyright © 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  

SEE ALSO

getcwd(3)

The full documentation for pwd is maintained as a Texinfo manual. If the info and pwd programs are properly installed at your site, the command

info coreutils aqpwd invocationaq

should give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
REPORTING BUGS
COPYRIGHT
SEE ALSO

This document was created by man2html using the manual pages.
Time: 17:32:07 GMT, October 23, 2013

2. pwd.9.man

Manpage of pwd

pwd

Section: Tcl Built-In Commands (n)
Updated:
Index Return to Main Contents



 

NAME

pwd - Return the absolute path of the current working directory  

SYNOPSIS

pwd



 

DESCRIPTION

Returns the absolute path name of the current working directory.  

EXAMPLE

Sometimes it is useful to change to a known directory when running some external command using exec, but it is important to keep the application usually running in the directory that it was started in (unless the user specifies otherwise) since that minimizes user confusion. The way to do this is to save the current directory while the external command is being run:

set tarFile [file normalize somefile.tar]
set savedDir [pwd]
cd /tmp
exec tar -xf $tarFile
cd $savedDir

 

SEE ALSO

file(n), cd(n), glob(n), filename(n)

 

KEYWORDS

working directory


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO
KEYWORDS

This document was created by man2html using the manual pages.
Time: 17:32:07 GMT, October 23, 2013

ENGLISH - ENGLISH - cs - da - ENGLISH - ENGLISH - ENGLISH - ENGLISH - ja - nl - pl - ro - ENGLISH - zh_CN

Meet new people