How to install bundles of additional terminal commands for rooted devices? I rooted a HTC Wildfire S device recently and flashed an Android 4.1.2 AOKP Jelly Bean Custom ROM. One benefit is that I can use the terminal now.

I'm a little used to using terminal emulators on desktop machines but never did that on an Android device before. I noticed some commands are not found, for example:

$ tree
/system/bin/sh: tree: not found


Is there a way to add more commands to my device, maybe a bundle of GNU packages for Android available somewhere?
Yes that's possible with the termux terminal.


  Homepage | Google Play


You can install additional shell commands using apt.

$ apt update
$ apt upgrade
$ apt install tree


Screenshot:



Bonus: Also works on non-rooted devices!