Termux is an open-source terminal emulator and Linux environment for Android. It comes with its own package manager (pkg) and a large collection of command-line utilities, allowing you to run software like Python, Node.js, Git, SSH, and even servers directly on your phone or tablet.
Key features:
ssh root@your_server_ip
Termux repositories change URLs occasionally. First, ensure your sources are correct (if upgrading from a very old version), then update the package list: termux complete tutorial
pkg update && pkg upgrade -y
(Type y and hit Enter if asked to proceed).
cp myscript.sh ~/storage/downloads/
termux-camera-photo -c 0 ~/storage/shared/DCIM/termux.jpg
| Action | Input |
|--------|-------|
| Ctrl+C | Volume Down + C |
| Ctrl+Z | Volume Down + Z |
| Tab completion | Tab key |
| Interrupt process | Ctrl+C |
| Exit session | exit or Ctrl+D |
| Clear screen | clear or Ctrl+L |
| Open new session | Swipe from left → New session |
Install the Termux:API app from F-Droid, then: Termux is an open-source terminal emulator and Linux
pkg install termux-api
Now you can control Android hardware from the terminal: