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 -yNow install broot.
pkg install brootOnce the installation is complete, run Broot.
brootThe 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.
brootOpen Broot in a specific directory.
broot /sdcardDisplay the help information.
broot --helpShow hidden files and folders.
broot --hiddenShow only folders.
broot --only-foldersDisplay the size of files and directories.
broot --sizesShow the last modified date of files and folders.
broot --datesShow file and folder permissions.
broot --permissionsShow filesystem information at the top.
broot --show-root-fsSort files by size.
broot --sort-by-sizeSort files by their last modified date.
broot --sort-by-dateSort files by type, with directories first.
broot --sort-by-typeSort by file count.
broot --sort-by-countShow the directory tree up to two levels deep.
broot --max-depth 2Hide the directory tree.
broot --no-treeDisable colors and styles.
broot --color noThese 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.
| Shortcut | Description |
|---|---|
↑ / ↓ | Move up and down through files and folders. |
← | Go to the parent directory. |
→ | Open or enter a selected folder. |
Enter | Open the selected file or folder. |
/ | Search for files and folders. |
Esc | Clear the search or cancel the current action. |
q | Quit 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.

