pwd – confirm current directory

pwd command pwd command

Each time you’re going to perform some file or directory operation in Unix, it helps to be aware of where exactly in the filesystem tree you are.

To confirm your current directory, you can use a pwd command.

pwd – current directory in Unix

The syntax of pwd command is very simple – it requires no parameters, and returns you a full name of your current directory:

ubuntu$ pwd
/home/greys

That’s all there is to this command! If I use cd command to navigate into a different directory, pwd will obviously confirm my move:

ubuntu$ cd /usr/bin
ubuntu$ pwd
/usr/bin

See also




Contact Me

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
24 Mar 2024

Homelab: Mac Pro 2013 32GB

30 Sep 2023

macOS Sonoma 14.0

26 Sep 2023

Video: What Browser Do You Use?

Recent Tweets