Check the Current Directory in Bash

Learn how to change directories via "pwd" command.

pwd

Definition:

pwd is a Shell built-in command which is mainly used to print the current directory’s name. Unlike many other commands, pwd can also be used just by itself without any arguments. It is rarely used with any arguments or options.

Syntax:

pwd [option]

Example:

  • To print current working directory

pwd

Get hands-on with 1200+ tech skills courses.