lf in Termux | Command-Line Terminal File Manager

lf is a fast and simple terminal file manager that lets you manage your files and folders in Termux. It provides a simple keyboard-based interface for browsing folders, copying, moving, renaming, and searching files. You can also open the Termux shell and run commands without leaving lf in background.

Here’s what you can do with lf in Termux:

  • Browse files and folders from the terminal.
  • Open files and directories quickly.
  • Copy, cut, and paste files.
  • Rename files and folders.
  • Create new files and folders.
  • Search and filter files.
  • Run shell commands without leaving lf.
  • Select multiple files for file operations.
  • Access your Android internal storage.

Install lf in Termux

You can easily install lf in Termux with a single command, just copy and run the command below.

First, update your Termux packages.

pkg update && pkg upgrade -y

Install lf.

pkg install lf -y

Allow Termux to access your Android internal storage.

termux-setup-storage

A permission message will appear, tap Allow to give Termux access to your storage.

You can use the following command to open your device’s internal storage.

cd /sdcard

You can now start lf by running:

lf

Usage Guide

When you run lf, it will open a terminal-based file manager. You can use the following keyboard shortcuts to navigate and manage your files.

Navigation

  • j / k — Move down / up.
  • h / l — Move to the parent directory / open a directory.
  • Enter — Open a folder or file.
  • gg — Jump to the top.
  • G — Jump to the bottom.

File Actions

  • Space — Select / unselect an item.
  • y — Copy selected items.
  • d — Cut selected items.
  • p — Paste copied or cut items.
  • c — Clear the clipboard buffer.
  • r — Rename a file.
  • a — Create a new file.
  • A — Create a new folder.

Search & Shell

  • / — Search for items.
  • n / N — Go to the next / previous match.
  • f — Filter the view by name.
  • w — Open the Termux shell. Exit the shell to return to lf.
  • ! — Run a one-off shell command.
  • q — Quit lf.

You can use these keyboard shortcuts to quickly browse, search, and manage your files in lf without typing many commands in the Termux terminal.

End Note

lf is a lightweight and easy-to-use file manager for Termux that makes it simple to browse and manage your files from the terminal. Its simple keyboard shortcuts help you handle common file tasks quickly.

SHARE THIS POST: