Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Top Linux Terminal File Managers Ranked

· 6 min read · Home Tech

In this article
  1. Why Use a Terminal File Manager?
  2. How Terminal File Managers Work
  3. The Top Ranked Managers
  4. How to Choose the Right One
  5. Common Problems and Solutions
  6. Safety and Best Practices
  7. Alternatives and Related Tools
  8. Frequently Asked Questions

The most popular Linux terminal-based file managers, ranked by community adoption and feature set, are ranger, lf, and nnn. These three dominate because they combine speed, keyboard-driven navigation, and scriptability, but the best choice depends on your workflow and preferences.

Why Use a Terminal File Manager?

Graphical file managers like Nautilus or Dolphin are fine for casual use, but terminal file managers offer several advantages for power users and system administrators:

  • Speed: They launch instantly and use minimal system resources, even on remote servers or older hardware.
  • Remote work: They work seamlessly over SSH, allowing you to manage files on a server without a graphical environment.
  • Keyboard-centric: Everything can be done with the keyboard, which is faster once you learn the keybindings.
  • Scriptability: You can integrate them with shell scripts, custom commands, and other CLI tools like grep, find, and tar.
  • Lightweight: Most are single binaries with few dependencies, making them easy to install on minimal systems.

How Terminal File Managers Work

Terminal file managers typically use a full-screen text interface that redraws the screen using escape sequences. They rely on libraries like ncurses or termbox to handle keyboard input and display. The core interaction model is:

  • Navigation: Use arrow keys or h/j/k/l (Vim-style) to move between files and directories.
  • Selection: Mark files with a key (often Space or v) for bulk operations.
  • Operations: Copy, move, delete, rename, and create files/directories via keybindings or command prompts.
  • Preview: Many show a preview pane for text files, images (using w3m or chafa), and PDFs.
  • Shell integration: You can drop into a shell in the current directory or run external commands on selected files.

Most also support tabs and panes to view multiple directories simultaneously, similar to a graphical file manager.

The Top Ranked Managers

Based on GitHub stars, package availability, and community discussion, here are the most popular terminal file managers as of 2024:

  1. ranger – The most established and feature-rich. Written in Python, it uses ncurses and offers a multi-pane view with file previews, Vim-style keybindings, and extensive customization. Its rifle file opener determines which program to use for each file type. It is slower to start than newer tools but extremely powerful.
  2. lf – A modern alternative written in Go, inspired by ranger but faster and more minimal. It uses a single binary with no runtime dependencies, making it ideal for servers. It supports client-server architecture, so you can share a file manager instance across multiple terminal windows.
  3. nnn – A tiny, blazing-fast file manager written in C. It focuses on simplicity and performance, with a no-nonsense interface. It includes a disk usage analyzer (du), a file launcher, and integrates with fzf for fuzzy finding. It is often used on embedded systems and by sysadmins who need a lightweight tool.
  4. vifm – A file manager with a strong Vim influence, offering two panes and Vim-like commands, registers, and macros. It is highly configurable and works well for users who live in Vim.
  5. mc (Midnight Commander) – A classic Norton Commander clone that has been around since the 1990s. It features a two-pane interface with a menu bar and mouse support. While not as modern, it is stable, widely available, and still preferred by many long-time users.

How to Choose the Right One

Your choice should depend on your priorities:

  • If you want maximum features and don't mind a slight startup delay: Choose ranger. It has the richest ecosystem of plugins and themes.
  • If you need speed and minimalism: Choose lf or nnn. Both are near-instant and use negligible memory. lf is more customizable, while nnn is more out-of-the-box.
  • If you are a Vim enthusiast: vifm gives you the most Vim-like experience, including normal/visual modes and command-line editing.
  • If you want a familiar, mouse-friendly interface: mc is the safest bet, especially if you used it on old Unix systems.

Try each for a day. Install them with your package manager (e.g., sudo apt install ranger), and see which keybindings feel natural.

Common Problems and Solutions

Here are typical issues users encounter and how to fix them:

  • File previews don't work: Previews require external tools. For images, install w3m-img or chafa; for PDFs, pdftotext; for archives, bsdtar. Check your manager's documentation for the exact list.
  • Keybindings conflict with your shell: Some managers use key combinations that your terminal emulator might intercept. You can often remap them in the config file.
  • Slow startup with ranger: Disable unused plugins or switch to lf or nnn if it bothers you.
  • Deleting files is scary: Most managers move files to a trash directory instead of permanent deletion. Configure this in the settings to avoid accidents.
  • SSH sessions lag: If you're using a manager over a slow connection, disable file previews and use a lighter manager like nnn.

Safety and Best Practices

Terminal file managers are powerful, so follow these safety tips:

  • Always double-check the current directory before running bulk operations like delete *.
  • Use the trash feature when available, instead of permanent deletion.
  • Be careful with sudo: Running a file manager as root can lead to accidental damage. Use it only when necessary.
  • Test in a temporary directory first if you're new to a manager.
  • Keep backups of important files, especially when experimenting with scripts or plugins.

If these don't fit your needs, consider these alternatives:

  • fzf – Not a file manager, but a fuzzy finder that lets you quickly locate files and open them. Often used in combination with file managers.
  • fd – A simple, fast alternative to find, useful for locating files from the command line.
  • yazi – A newer, async file manager written in Rust, gaining popularity for its speed and modern features like image previews and built-in code highlighting.
  • clifm – A lightweight, POSIX-compliant file manager that uses a command-line interface rather than full-screen, similar to a shell.
  • Terminal multiplexers like tmux or screen can complement a file manager by allowing you to run it in one pane and a shell in another.

Frequently Asked Questions

Which terminal file manager is the fastest?

nnn is generally considered the fastest because it's written in C and has a minimal feature set. lf is also very fast, with startup times under 10ms on most systems. ranger is slower due to its Python interpreter, but still acceptable on modern hardware.

Can I use these file managers over SSH?

Yes, all of them work over SSH because they only require a terminal. However, file previews that rely on graphics (like images) won't work unless you use a terminal that supports graphics protocols like sixel or kitty graphics. Text previews work fine.

Do I need to install anything else for file previews?

Most managers use external programs for previews. For text files, they use built-in tools. For images, you need w3m-img or chafa. For PDFs, pdftotext or mupdf. Check the manager's documentation for the full list of dependencies.

Can I customize keybindings?

Yes, all of them allow customization. ranger uses a rc.conf file, lf uses a lfrc file, nnn uses environment variables and a config file, and vifm uses a vifmrc file. You can remap almost every action.

Are these file managers safe to use as root?

They are safe in the sense that they don't do anything malicious, but running any file manager as root increases the risk of accidental deletion or modification of system files. It's best to avoid root unless absolutely necessary, and always double-check paths.

Which one is best for a beginner?

mc is the easiest for beginners because it has a familiar two-pane layout and even mouse support. ranger is also approachable due to its extensive documentation and visible keybindings at the bottom of the screen. Start with one of those, then experiment with others.