Install Terminal on Android
You can download a Terminal application from Play Store (yes, as simple as that). However, there are several Terminal emulators to choose from, and you can go with anyone you like. What I recommend you is to go with Termux (personally tried and tested). Termux works perfectly without root access, supports the apt package manager to install the application packages and it’s very lite (less than a half megabyte).
Setting up the Terminal