Linux pwd Command

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux pwd Command

Linux pwd (print working directory) command displays your location currently you are working on. It will give the whole path starting from the root ending to the directory.

Syntax:

  1. pwd  

Example:

Let's see an example of pwd command.

Open your terminal and type pwd, press enter key. You can see your directory path. Here, my path is /home/sssit and my current location is sssit.

Notice here, that loction will be shown from the root or from the filesystem.

linux -directories-pwd-command1