info > pwd

πŸ“› 19.1 'pwd': Print working directory

πŸ“„ File: coreutils.info, Node: pwd invocation, Next: stty invocation, Up: Working context

πŸš€ Quick Reference

Use CaseCommandDescription
Print current directorypwdPrints the working directory
Show logical path (with symlinks)pwd -LUse PWD environment variable if valid
Show physical path (no symlinks)pwd -PResolve all symbolic links

πŸ“ SYNOPSIS

pwd [OPTION]...

πŸ“– DESCRIPTION

🏠 pwd prints the name of the current directory. The program accepts the following options. Also see Common options.

βš™οΈ OPTIONS

βš–οΈ If -L and -P are both given, the last one takes precedence. If neither option is given, then this implementation uses -P as the default unless the POSIXLY_CORRECT environment variable is set.

⚠️ Due to shell aliases and built-in pwd functions, using an unadorned pwd interactively or in a script may get you different functionality than that described here. Invoke it via env (i.e., env pwd ...) to avoid interference from the shell.

πŸšͺ Exit Codes

βœ… An exit status of 0 indicates success, and a non-zero value indicates failure.

pwd
πŸ“› 19.1 'pwd': Print working directory πŸš€ Quick Reference πŸ“ SYNOPSIS πŸ“– DESCRIPTION βš™οΈ OPTIONS πŸšͺ Exit Codes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-31 03:55 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format