Primary
pwd ⚬ˢʰ|Definition|1st|20260523112653-00-⌔
pwd
**pwd**(p rint w orking d irectory)123 is a shell command that reports the working directory path to standard output.45678910Although often associated with Unix, its predecessor Multics had a
pwdcommand (which was a short name of theprint_wdircommand11) from which the Unix command originated.12 The command is part of the X/Open Portability Guide since issue 2 of 1987. It was inherited into the first version of POSIX.1 and the Single Unix Specification.13 It appeared in Version 5 Unix.14 The version bundled in GNU Core Utilities was written by Jim Meyering.15The command is available in other shells and operating systems including SpartaDOS X,16 PANOS,17 and KolibriOS.18 PowerShell provides
pwdas an alias for the cmdletGet-Location. An equivalent command in COMMAND.COM and Command Prompt is thecdcommand with no arguments. On Windows CE 5.0,cmd.exeincludes apwdcommand.19 The OpenVMS equivalent isshow default.The numerical computing environments MATLAB and GNU Octave include a
pwdfunction with similar functionality.2021The command is implemented as a shell builtin in many Unix shells including sh, ash, bash, ksh, and zsh. It can be implemented with the POSIX
getcwd()orgetwd()functions.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original Footnotes
“pwd(1) [minix man page]”. www.unix.com. ↩
“pwd - print name of current/working directory - man page”. www.mankier.com. Archived from the original on 2016-08-28. Retrieved 2016-08-25. ↩
“GNU Coreutils”. www.gnu.org. Archived from the original on 2004-02-05. Retrieved 2016-07-22. ↩
Unix Time-Sharing System: Unix Programmer’s Manual (PDF). Vol. 1 (7th ed.). Bell labs. January 1979. p. 142. Archived from the original (PDF) on 2005-05-20. ↩
“pwd(1) [plan9 man page]”. www.unix.com. ↩
“pwd”. pubs.opengroup.org. Archived from the original on 2011-05-16. Retrieved 2020-09-12. ↩
“pwd(1) [osf1 man page]”. www.unix.com. ↩
“Apple OS X MAN page”. Archived from the original on 2011-09-24. Retrieved 2015-08-27. ↩
“pwd(1) - OpenBSD manual pages”. man.openbsd.org. Archived from the original on 2018-02-04. Retrieved 2018-02-04. ↩
“pwd(1) [opensolaris man page]”. www.unix.com. ↩
“working_dir, wd, print_wdir, pwd (Multics help segment)”. MIT. Archived from the original on 2 April 2021. Retrieved 7 March 2020. ↩
Van Vleck, Tom. “Unix and Multics”. Multicians.org. Archived from the original on 26 April 2022. Retrieved 7 March 2020. ↩
wc– Shell and Utilities Reference, The Single UNIX Specification, Version 5 from The Open Group ↩
pwd(1)– FreeBSD General Commands Manual ↩
pwd(1)– Linux User Manual – User Commands ↩“SpartaDOS X 4.48 User Guide” (PDF). Archived (PDF) from the original on 2021-10-10. Retrieved 2019-03-16. ↩
“Chris’s Acorns: Panos”. chrisacorns.computinghistory.org.uk. Archived from the original on 2016-03-31. Retrieved 2019-03-16. ↩
“Shell - KolibriOS wiki”. wiki.kolibrios.org. Archived from the original on 2019-02-11. Retrieved 2019-03-16. ↩
“Command Processor Commands (Windows CE 5.0)”. docs.microsoft.com. Archived from the original on 2020-05-15. Retrieved 2020-04-13. ↩
“Identify current folder - MATLAB pwd”. www.mathworks.com. Archived from the original on 2022-04-09. Retrieved 2019-04-06. ↩
“Function Reference: pwd”. octave.sourceforge.io. Archived from the original on 2022-04-20. Retrieved 2019-04-06. ↩
pwd ⚬ˢʰ|docu|1st|20251021001049-00-◊
pwd(1) - Linux manual page
Link to original
(echo:: @ ᯤ)
Secondary
• • •