tree for Android

rhythmcache.t.me

Magisk KernelSU APatch
1
Version
3.75 KB
Size
Jan 11, 2025
Updated

Module Info

  • Contributors rhythmcache
  • Source Code View Repository
  • Tags
    #Tree #CLI Tool #Bash #Terminal #Magisk Module #rhythmcache

About this module

tree by rhythmcache adds a tree command to Android, which prints a folder and its contents as a tree. It isn't a compiled binary. It's a Bash script that imitates the Linux tree command.

Supported options

The README says it's slower than the real tree and that many of the original options are missing. These are the ones it supports:

OptionWhat it does
-aShows hidden files
-nTurns off color
-dShows directories only
-LLimits the depth of the tree
-iUses ASCII

For example:

tree -L 2 /storage/emulated/0

Installing

The script needs Bash. The installer looks for /system/bin/bash, and if it isn't there it tries to download a Bash binary for your CPU, so stay online during installation. Flash the zip in your root manager and reboot. The script is installed at /system/bin/tree.