Download and install the Termux android application from google playstore. The system requirement for installing it is Android version 5.0+. Open the Termux app. It will show you a Command Line Interface. Type these commands:
-
First check it for updates and upgrades:
$ apt update && apt upgrade
-
Termux comes with minimal base system, so consider installing coreutils for full fledged commands of CLI: