Termux Complete Tutorial (2025)
Termux Complete Tutorial: From Zero to Hero on Android
Introduction: The Power of a Pocket Linux
For decades, the smartphone has been viewed as a consumption device—great for watching videos, scrolling social media, and playing games. But what if you could turn your Android phone into a legitimate development environment, a penetration testing toolkit, or a local web server?
Enter Termux.
Termux is an open-source terminal emulator and Linux environment for Android. It installs a minimal base system (similar to Ubuntu or Debian) directly onto your device without requiring root access. This "Termux complete tutorial" will guide you through installation, basic commands, advanced setups (like Hacking tools and Python development), and pro-tips to master your mobile terminal.
2.3 Multi-Session Management
You can run different tasks simultaneously (e.g., a web server in one session and code editing in another). termux complete tutorial
- Swipe from the left edge of the screen → New session.
- Swipe from the left → Rename session to organize.
- Quickly switch using
Alt + 1,Alt + 2, etc. (via extra keys).
Request Storage Access
termux-setup-storage
This creates ~/storage with links to Android folders (DCIM, Downloads, etc.).
13. Uninstalling Termux
- Clear app data (Settings → Apps → Termux → Storage → Clear Data)
- Uninstall Termux app
- Manually delete
~/storagesymbolic links if left
4.1 Python (For Data Science & General Dev)
pkg install python python-pip
pip install --upgrade pip
Test: python --version
Install scientific libraries (NumPy, Matplotlib):
Note: These take time and space.
pkg install clang
pip install numpy matplotlib
Files, storage, and Android interaction
- Storage mount locations:
- Internal shared storage: /sdcard (use termux-setup-storage)
- Internal app files: $HOME
- Accessing media files: after termux-setup-storage, shared files appear under /sdcard and a ~/storage symlink is created:
- ~/storage/shared → /sdcard
- ~/storage/downloads, dcim, pictures, etc.
- Editing Android files safely: copy to $HOME, edit, then move back with appropriate permissions.
Part 7: Troubleshooting Common Errors
Tutorial B: Access Your Phone’s Storage
Termux lives in its own sandbox. To copy a movie from your Downloads folder to Termux: Termux Complete Tutorial: From Zero to Hero on
cd ~/storage/downloads # Navigate to phone's Downloads
cp movie.mp4 ~/ # Copy to Termux home
cd ~/ # Go back home
ls # See movie.mp4 listed
