Welcome to KB center
< All Topics
Print

pwd

The pwd command allows you to print the current working directory on your terminal. It’s a very basic command and solves its purpose very well.

Pwd Default Output

pwd <options>

Now, your terminal prompt should usually have the complete directory anyway. But in case it doesn’t, this can be a quick command to see the directory that you’re in. Another application of this command is when creating scripts where this command can allow us to find the directory where the script has been saved.

Table of Contents