popd
file managementLinux/Unix
The popd command is one of the most frequently used commands in Linux/Unix-like operating systems. popd Remove a directory from the directory stack
Quick Reference
Command Name:
popd
Category:
file management
Platform:
Linux/Unix
Basic Usage:
popd [options] [arguments]
Common Use Cases
Syntax
popd [+N | -N]
Options
Option | Description |
---|---|
+N |
Removes the Nth directory (counting from the left of the list shown by dirs, starting with zero) |
-N |
Removes the Nth directory (counting from the right of the list shown by dirs, starting with zero) |
Examples
How to Use These Examples
The examples below show common ways to use the popd
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
popd