Table of Contents

Bash - dirs (list of remembered directories)

About

Stack/list of remembered directories.

You can change of directories and return to the directory from which you came.

Syntax

dirs [-clpv] [+n] [-n]

Management

Return value

The return value is 0 unless an invalid option is supplied or n indexes beyond the end of the directory stack.

Display

The default display is on a single line with directory names separated by spaces.