Skip to content
CareerBridge
← Linux: navigate with confidence
GUIDED STARTER LESSON

Know where you are

Explain the working directory and an absolute path.

Understand the idea

A terminal command runs in a current working directory. pwd prints that directory.

An absolute path begins at the filesystem root, written /. A relative path is interpreted from the current directory.

Do not confuse the filesystem root with the root user. One is a location; the other is a powerful account.

Worked example

pwd might print /home/learner. The actual result depends on your lab.

pwd