Where am I?

A shell always has a current working directory: the directory your commands act on unless you name another one.

  • pwd (print working directory) tells you where that is.
  • cd PATH (change directory) moves you there.

A path that starts with / is absolute. It begins at the very top of the filesystem (the root), so it means the same thing wherever you stand.

cd /lab/navigator
pwd

Real world: the first thing a sysadmin types after logging into an unfamiliar server is often pwd. Commands like rm act on "here", so knowing where "here" is matters.