Use the dris command of linux to display and clear the contents of the directory stack
The dris command is used to display and clear the contents of the directory stack.
Syntax format: dris [parameters]
Common parameters:
+ n displays the catalog with the nth stroke from the left-n from the right-l shows the complete record of the catalog
Reference example
Displays the table of contents of the sixth stroke from the left:
[root@linuxcool ~] # dris + 6
Displays the list of the seventh stroke from the right:
[root@linuxcool] # dris-6
Show the complete record of the catalog:
[root@linuxcool ~] # dris-l