pwd or Print Working Directory

Amazing grace, how sweet the sound! Superusers Adelie the penguin and Aramis the GNU help a lost file find his way home with the pwd or Print Working Directory command.

  • Click here for the full video transcript

    >>ROOT: Life obliges me to do something, so I narrate…

    >>FILE: Help! I am lost..

    >>FILE: I can’t find my way home.

    >>FILE: Oh, whatever will I do? Help. Help!

    >>ROOT: Meanwhile, in the home directory…

    >>ADELIE: [Squawk]

    >>ARAMIS: But I’m telling you, it IS a pipe.

    >>ADELIE: [Squawk]

    >>ARAMIS: Are you redirecting the conversation?

    >>ADELIE: [Squawk]

    >>ARAMIS: Oh, the treachery of images…

    [incoming message]

    >>KERNEL: [Squawk]

    >>ADELIE: [Squawk]

    >>ARAMIS: Holy fisk!

    >>ADELIE: [Squawk]

    >>ARAMIS: No, I said f-s-c-k. To the Nautilus!

    >>FILE: Swing low, sweet chariot. Comin’ fore to carry me home…

    >>FILE: Hooray! It’s the Superusers here to save me.

    >>ADELIE: [Squawk]

    >>FILE: I am lost.

    >>ADELIE: [Squawk]

    >>FILE: pwd? Does that mean prize-winning Doberman?

    >>ADELIE: [Squawk]

    >>FILE: Prehistoric wombat dung?

    >>ADELIE: [Squawk]

    >>FILE: Pizza wings on a dodo?

    >>ADELIE: [Squawk]

    >>FILE: Oh, print working directory.

    >>ADELIE: [Squawk]

    >>FILE: Wow! Print working directory is a prize-winning Doberman! But how do I get out of here? When I cd home I get an error.

    >>ARAMIS: cd home is a relative path. You can’t get home from here with that command because your home isn’t in this directory. You need to declare an absolute path, like this cd slash home. The slash takes you home through the root of the file tree.

    >>ADELIE: [Squawk]

    >>ARAMIS: Yes, the slash IS important.

    >>FILE: Amazing Grace, how sweet the sound, That saved a wretch like me. I once was lost but now am found, Was blind, but now I see.

    >>ARAMIS: Our work is done here. Let’s go home.

    >>ADELIE: [Squawk]

    >>ROOT: Tune in next time for another top-notch episode of Superuser! The Legendary GNU slash Linux Show!

Become a Superuser!

Join super friends Adelie the penguin and Aramis the gnu on surreal adventures saving files in the file tree. Learn the essential commands you need to take greater control of your computer.

Get It Now!

pwd or Print Working Directory was produced by Dototot on . Dototot is a creative media company and think tank specializing in educational material.

Discuss this video in the Comments below, or and it with your friends. Learn more about Linux by subscribing to The Hello World Newsletter .

Join the Discussion

Subscribe to our Mailing List

Stay up to date on the latest videos and tutorials with our monthly newsletter

The email entered is invalid