Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
8 Best Linux Console File Managers
If you're a Linux user, you may be familiar with the console, which is a command-line interface that allows you to interact with your operating system using text commands. While many Linux users prefer graphical user interfaces, console file managers can be more efficient and powerful for file management tasks. These tools allow you to navigate, copy, move, and delete files and directories using a text-based interface. In this article, we'll explore eight of the best console file managers for Linux.
Midnight Commander (MC)
Midnight Commander is a classic console file manager that has been around for over 20 years. It's a favorite among many Linux users for its simplicity, ease of use, and powerful features. MC features a dual-pane interface that allows you to navigate your file system and perform file operations with ease.
sudo apt install mc # Debian/Ubuntu sudo yum install mc # RHEL/CentOS
Key navigation: Use arrow keys to move around, and F-keys to access various commands. F5 copies files, F6 moves files, and F8 deletes files. MC also has built-in support for archives, RPM packages, and FTP servers.
Ranger
Ranger is a modern console file manager designed to be minimalist and keyboard-centric, with a focus on speed and efficiency. It features a three-pane interface that displays your file system in a tree structure with file previews.
sudo apt install ranger # Debian/Ubuntu sudo pacman -S ranger # Arch Linux
Navigation is intuitive with h/j/k/l (Vim-style) keys. Press dd to delete, cc to copy, and yy to yank (copy path). Ranger offers extensive customization through configuration files.
Vifm
Vifm is a console file manager modeled after the classic Amiga file manager, featuring Vim-like keybindings. It has a dual-pane interface similar to Midnight Commander but with unique features like built-in file previews.
sudo apt install vifm # Debian/Ubuntu brew install vifm # macOS
You can quickly preview images, text files, and other file types without opening them in separate programs. Vifm also provides a powerful command-line interface for complex file operations.
nnn
nnn (pronounced "nnn" or "n³") is a minimalist console file manager designed to be fast and lightweight. It features a single-pane interface that displays your file system in a list format with impressive performance.
sudo apt install nnn # Debian/Ubuntu brew install nnn # macOS
Navigation uses arrow keys, with Enter to open files/directories. Key shortcuts include d to delete, Ctrl+X to cut, and Ctrl+V to paste. nnn supports plugins and has excellent benchmark performance.
lf
lf (List Files) is a terminal file manager inspired by Ranger but written in Go for better performance. It features a minimalist design with powerful customization options through shell commands.
sudo apt install lf # Debian/Ubuntu go install github.com/gokcehan/lf@latest
Uses Vim-like navigation (h/j/k/l) and supports extensive configuration. You can bind custom shell commands to keys and create complex file operations workflows.
fff
fff (Fast File-Manager) is an ultra-minimalist bash script file manager focused on speed and simplicity. Despite being a simple script, it provides essential file management functionality.
curl -o ~/.local/bin/fff https://raw.githubusercontent.com/dylanaraps/fff/master/fff chmod +x ~/.local/bin/fff
Navigation uses arrow keys with Enter to open items. Press d to delete, r to rename, and m to move files. Being a bash script, it's highly portable and customizable.
clifm
clifm (Command Line Interface File Manager) combines the power of a shell with file manager functionality. It provides a unique approach by integrating file management directly into a command-line environment.
sudo apt install clifm # Debian/Ubuntu (if available) # Or compile from source
Features include auto-completion, command history, bookmarks, and the ability to run shell commands seamlessly within the file manager interface.
broot
broot offers a modern approach to directory navigation with a tree view that can handle large directory structures efficiently. It provides fuzzy search and filtering capabilities.
sudo apt install broot # Debian/Ubuntu brew install broot # macOS
Features include real-time filtering, directory size visualization, and the ability to perform actions on multiple files simultaneously. The interface adapts to terminal size automatically.
Comparison
| File Manager | Interface | Key Features | Best For |
|---|---|---|---|
| Midnight Commander | Dual-pane | F-key shortcuts, archive support | Beginners, traditional users |
| Ranger | Three-pane | File previews, Vim-like keys | Power users, customization |
| Vifm | Dual-pane | Vim keys, file previews | Vim users |
| nnn | Single-pane | Speed, plugins, performance | Minimal resource usage |
| lf | Single-pane | Go performance, customizable | Speed and efficiency |
| fff | Single-pane | Bash script, portable | Simplicity, portability |
| clifm | Command-line | Shell integration | Command-line experts |
| broot | Tree view | Fuzzy search, large dirs | Complex directory structures |
Choosing the Right Console File Manager
When selecting a console file manager, consider these factors:
Experience Level Midnight Commander is beginner-friendly with built-in help, while Ranger requires command-line familiarity.
Interface Preference Choose between dual-pane (MC, Vifm), single-pane (nnn, lf), or tree view (broot) layouts.
Performance Requirements nnn and lf excel in speed, while Ranger offers rich features at the cost of some performance.
Customization Needs Ranger and lf provide extensive customization options, while fff offers simplicity.
Conclusion
Console file managers are powerful tools that can significantly improve file management efficiency in Linux. From the classic simplicity of Midnight Commander to the modern speed of nnn, each offers unique advantages. Consider trying several options to find the one that best matches your workflow and preferences. The right console file manager can transform your command-line experience and boost productivity.
