pwd – confirm current directory

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

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

ubuntu$ cd /usr/bin
ubuntu$ pwd

See also:

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS