Pwd

Article on other languages:

del.icio.us del.icio.us
Digg Digg
Furl Furl
Reddit Reddit
Rojo Rojo
Add to OnlyWire

The pwd command (print working directory) is used to print the name of current working directory from a computer's command-line interface. If the shell prompt does not already show this, the user can use this command to find their place in the directory tree. This command is primarily found in Unix-like operating systems, but can be seen elsewhere as well.

The command is a shell builtin in certain Unix shells such as sh, and bash. It can be implemented easily with the POSIX C functions getcwd() and/or getwd().

The equivalent on DOS (COMMAND.COM) and Microsoft Windows (cmd.exe) is the "cd" command with no arguments. Windows PowerShell provides the equivalent "Get-Location" cmdlet with the standard aliases "gl" and "pwd". The OpenVMS equivalent is "show default".

Example

$ pwd
/home/foobar

See also

References


This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.


Giant Panda

Mercedes Car
James Bond Guide
This site monitored by SitePinger.net