pwd

>Usage

The pwd (print working directory) command is used to display the absolute path of the current working directory. It helps users determine their location in the filesystem.

This command is fundamental for navigation and for understanding the structure of directories in Linux and Unix-based systems. By default, it shows the full path from the root to the current directory, allowing users to know exactly where they are within the system’s directory structure.

>Synopsis

pwd [option]

>Options

-P

Displays the physical path by resolving all symbolic links, giving the actual location of the directory.

Example:

Dots

-zsh

> pwd -P


/home/user/tmp

-L

Displays the logical path, which may include symbolic links if any are present.

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Alessia Sanchez