
ranger
Console file manager with VI key bindings, multi-column display, and file preview capabilities
Ranger is a terminal-based file manager that uses VI key bindings for navigation and file operations. It displays files in a three-column layout: parent directory, current directory contents, and file preview. Users navigate with h/j/k/l keys or arrow keys, open files with Enter, and quit with q. The interface provides automatic file type detection and launches appropriate programs for different file types through its included rifle launcher.
The tool supports extensive file previews through optional dependencies, including ASCII-art image previews via img2txt, syntax highlighting for code files using highlight or pygmentize, and media file thumbnails through ffmpeg. It can preview archives, PDFs, HTML pages, and various document formats. Ranger also offers multi-pane viewing modes similar to Midnight Commander for users who prefer that layout.
Ranger includes features like UTF-8 support, file operations (create, copy, delete, chmod), batch file renaming, tabs, bookmarks, and mouse support. It can change the shell's working directory after exit and supports extensive customization through configuration files. The tool is designed for users who prefer keyboard-driven file management and want file preview capabilities without leaving the terminal.
Installation
# via PyPI
pip install ranger-fm
# via pipx
pipx run --spec ranger-fm ranger



Alternatives & related tools
beets
Command-line music library manager that catalogs collections and autocorrects tags using MusicBrainz, Discogs, and Beatport, extensible through Python plugins.
ImageMagick
Open-source C software suite with a command-line interface and APIs for creating, editing, converting, and composing bitmap images in 200+ formats.
lsd
Enhanced ls replacement with colors, icons, tree view, and additional formatting options written in Rust
broot
Interactive file manager and directory navigator with fuzzy search, git integration, and file operations
nnn
Terminal file manager with disk usage analysis, batch operations, and extensive plugin ecosystem
add a badge to your README
Maintain ranger? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/ranger?utm_source=badge)<a href="https://www.trmn.sh/tools/ranger?utm_source=badge"><img src="https://www.trmn.sh/badge/ranger.svg" alt="Featured on trmn" height="20"></a>