Forrest logo
back to the ranger tool

ranger:tldr:1215d

ranger: Show only directories.
$ ranger --show-only-dirs
try on your machine

The command "ranger --show-only-dirs" is used to run the ranger file manager program in a mode where it only displays directories (folders) and excludes any files from the view.

Ranger is a text-based file manager for Unix-like operating systems that provides a simple and intuitive interface for navigating and manipulating files and directories. By default, ranger displays both directories and files, but the "--show-only-dirs" option restricts the display to only directories.

When you run this command, ranger will launch, and you will see a list of directories in your current location. You can navigate between directories using the arrow keys or by typing the directory's number. This mode can be useful if you only need to focus on directories and don't want to clutter the view with files.

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 ranger tool