terminal.cab

All commands

pwd

Topic: Files and folders

Shell builtin: pwd

Prints the path of the current directory.

Package: core-shell

Usage

pwd

Description

Show the path of the directory the shell is in, as kept in $PWD.

Options in the simulator

No options.

2 more options of the real program, not in the simulator yet
  • -L not in the simulator yet

    Explanation to come

  • -P not in the simulator yet

    Explanation to come

Program: pwd

Prints the path of the current directory.

Package: core-shell

Usage

pwd [OPTION]...

Description

Print the full path of the current directory.

Options in the simulator

1 more options of the real program, not in the simulator yet
  • --version not in the simulator yet

    On a real system it prints the version of the program.

Examples

From the lesson Where am I? pwd, ls and cd
pwd
/home/lerner

Try it in the terminal

From the lesson Finding your way around a strange server
pwd
/home/lerner
cd /var/log && pwd
/var/log

Try it in the terminal

From the command of the day: pwd
pwd
/home/lerner

Try it in the terminal

Where you learn it

Lessons

Command of the day

All commands