pwd - confirm current directory

Hi! If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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 naviagate into a different directory, pwd will obviously confirm my move:

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

See also:

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Fark
  • Furl
  • Netscape
  • Reddit
  • Smarking
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

1 comment so far ↓

#1 cd - change directory | Unix Commands on 03.25.08 at 9:52 am

[...] pwd - confirm current directory → [...]

Leave a Comment