dirs
Quick Reference
Command Name:
dirs
Category:
file management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Directory navigation
View and manage the directory stack for quick navigation
- 2
Multi-directory workflow
Efficiently work between multiple directories without typing full paths
- 3
Shell history
Track previously visited directories for easy return
- 4
Script path management
Manage directory context in shell scripts
Syntax
dirs [OPTION]... [FILE]...
Options
| Option | Description |
|---|---|
-l |
Use a long listing format |
-a |
Show hidden entries starting with . |
-h |
Human-readable sizes |
-R |
List subdirectories recursively |
Examples
How to Use These Examples
The examples below show common ways to use the dirs command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.