Forrest logo
back to the dirs tool

dirs:tldr:c099e

dirs: Display the directory stack with one entry per line.
$ dirs -p
try on your machine

The command "dirs -p" is used to display the current directory stack, also known as the directory history, in a particular format.

Here's a breakdown of the command:

  • "dirs" is a command used to manage the directory stack, which stores a list of previously visited directories.
  • "-p" is an option or flag that modifies the behavior of the "dirs" command to display the directory stack in a particular format.

When you execute the "dirs -p" command, it will display the directory stack in a readable format, usually showing one directory per line. Each directory represents a previously visited location, with the most recent directory appearing at the bottom. This format can be useful for quickly viewing and managing your recently visited directories.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dirs tool