lf (as in “list files”) is an open source terminal file manager written in Go. It is heavily inspired by Ranger with some missing and extra features. Some of the missing features are deliberately omitted since they are better handled by external tools.
lf uses the underlying ‘cp’ and ‘mv’ shell commands for file operations. By default, lf does not provide an actual file deletion command to protect new users. You can define such a command and optionally assign a key.
lf tries to automatically adapt its colors to the environment. The software uses termbox-go for its user interface.
Key Features
- Single binary without any runtime dependencies (except for terminfo database).
- Fast startup and low memory footprint (due to native code and static binaries).
- Server/client architecture to share file selection between multiple instances.
- Configuration with shell commands.
- Customizable keybindings (vi and readline defaults).
- Command prefixes:
- : read (default) builtin/custom command.
- $ shell shell command.
- % shell-pipe shell command running with the ui.
- ! shell-wait shell command waiting for key press.
- & shell-async shell command running asynchronously.
- / search search file in current directory.
- ? search-back search file in the reverse order.
- Bind cd commands in the config file which acts like bookmarks.
- Preview filtering (for source highlight, archives, pdfs/images as text etc). lf previews files on the preview pane by printing the file until the end or the preview pane is filled.
- Case-insensitive searches.
- Persistent history using a history file. History file is currently limited to 1,000 commands.
- Sort by natural, size, and time.
- Unicode support.
Website: godoc.org/github.com/gokcehan/lf
Support: Tutorial, GitHub Code Repository
Developer: Gokcehan
License: MIT License
lf is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| File Managers | |
|---|---|
| Krusader | Advanced orthodox file manager for KDE |
| nnn | Fast and flexible file manager |
| Dolphin | Default file manager for KDE |
| Midnight Commander | User-friendly yet powerful orthodox file manager |
| Double Commander | File manager with two panels side by side |
| Ranger | Console file manager with VI key bindings |
| PCManFM-Qt | Lightweight Qt-based file manager which uses GLib |
| PCManFM | Default file manager for LXDE |
| Files | File browser designed for elementary OS |
| GNOME Files | Spatial file manager; default file manager for GNOME |
| lf | Terminal file manager written in Go |
| GNOME Commander | Orthodox file manager for the GNOME desktop environment |
| Spacedrive | Powered by a virtual distributed filesystem |
| CliFM | Shell-like, command line terminal file manager |
| Xfe | Very similiar to Windows Explorer |
Read our verdict in the software roundup.
| Console File Managers | |
|---|---|
| nnn | Fast and flexible file manager |
| Midnight Commander | User-friendly yet powerful orthodox file manager |
| superfile | Very fancy and modern terminal file manager |
| Ranger | File manager with an ncurses frontend written in Python |
| lf | Terminal file manager heavily inspired by ranger |
| Yazi | File manager with asynchronous support |
| CliFM | Shell-like, command line terminal file manager |
| joshuto | Ranger-like file manager |
| far2l | Linux fork of FAR Manager v2 |
| Vifm | ncurses based file manager with vi like keybindings |
| fm | Double pane file manager written in Go |
| felix | TUI file manager with Vim-like key mapping |
| fman | Uses Bubbletea, Lipgloss, Bubblezone, stickers, Chroma, and go-arg |
| FCD | Continuation of rnr |
| projectable | TUI file manager built for projects |
| Last File Manager | 1 or 2 pane Python based file manager |
| WCM Commander | A Far Manager clone |
| TUIFI Manager | Termux-oriented file manager |
| sff | Simple file finder |
| jafff | Just another f* fast file manager |
| goful | Another file manager written in Go |
| rnr | Combines the best features of Midnight Commander and Ranger |
| fff | Simple file manager |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


