Broot in Termux – Browse Files and Folders in the Terminal

Broot is a command-line tool for browsing files and folders in the terminal. It shows your files in a tree view and makes it easy to explore directories. You can search for files, check their sizes, view hidden files, and see file details. It also provides simple keyboard controls for managing your files.

Here’s what you can do with broot?

  • Browse files and folders in a tree view.
  • Search for files and directories.
  • Show hidden files and folders.
  • View file sizes and permissions.
  • Check the last modified date of files.
  • Display Git status information.
  • Sort files by name, size, date, or type.
  • Navigate between directories.

Install Broot in Termux

You can easily install Broot in Termux using the following commands:

First, update and upgrade Termux packages.

pkg update && pkg upgrade -y

Now install broot.

pkg install broot

Once the installation is complete, run Broot.

broot

The first time you run Broot, it will show this message:

Broot should be launched using a shell function.

This function most notably makes it possible to cd from inside broot.

Can I install it now? [Y/n]

Type Y and press Enter to install the shell function.

Use Broot in Termux

Broot provides several options to control how files and folders appear in the terminal.

Open Broot in the current directory.

broot

Open Broot in a specific directory.

broot /sdcard

Display the help information.

broot --help

Show hidden files and folders.

broot --hidden

Show only folders.

broot --only-folders

Display the size of files and directories.

broot --sizes

Show the last modified date of files and folders.

broot --dates

Show file and folder permissions.

broot --permissions

Show filesystem information at the top.

broot --show-root-fs

Sort files by size.

broot --sort-by-size

Sort files by their last modified date.

broot --sort-by-date

Sort files by type, with directories first.

broot --sort-by-type

Sort by file count.

broot --sort-by-count

Show the directory tree up to two levels deep.

broot --max-depth 2

Hide the directory tree.

broot --no-tree

Disable colors and styles.

broot --color no

These commands help you explore files and folders and use different features of Broot in a simple way.

Broot Keyboard Shortcuts

You can use different keyboard shortcuts in Broot to move between files and folders, search for items, open directories, and perform other actions.

ShortcutDescription
↑ / ↓Move up and down through files and folders.
←Go to the parent directory.
→Open or enter a selected folder.
EnterOpen the selected file or folder.
/Search for files and folders.
EscClear the search or cancel the current action.
qQuit Broot.
?Show available keyboard shortcuts and help.

You can use these shortcuts to navigate files and folders more quickly in Broot.

End Note

Broot is a simple tool for browsing files and folders in the terminal. It lets you search for files, view folder details, and move between directories easily. It is useful for managing and exploring files in Termux.

SHARE THIS POST: