Complete Tutorial //free\\ - Termux
This tutorial provides a comprehensive guide to Termux, an open-source terminal emulator and Linux environment for Android that requires no rooting 1. Installation and Initial Setup
While Termux is listed on the Google Play Store, that version is no longer maintained. It is highly recommended to install it from Official GitHub Releases to receive the latest updates. System Requirements: Android 7.0 or higher is required. Storage Access:
By default, Termux cannot see your phone's files. Grant access by running: termux-setup-storage Updating Repositories:
Immediately after installation, sync and update the package list: pkg update && pkg upgrade 2. Core Commands and Navigation termux complete tutorial
Termux uses standard Linux commands for file management and system interaction.
10. Useful Scripts & Automation
6. Working with Storage & Files
9. Running GUI Apps (VNC)
Termux itself has no native GUI, but you can run a Linux desktop via VNC:
pkg install x11-repo
pkg install tigervnc xfce4
vncserver -localhost -geometry 1280x720
Then use a VNC viewer app to connect to localhost:5901. This tutorial provides a comprehensive guide to Termux,
Backups and dotfiles
- Keep dotfiles in a Git repo. Example workflow:
git init --bare $HOME/.cfg alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' config remote add origin <repo> config checkout - Backup important data to cloud via rclone:
pkg install rclone rclone config rclone copy ~/project remote:backups/termux --progress
Copy file to Downloads
cp myscript.sh ~/storage/downloads/
Step 1: Download Termux
- Install F-Droid.
- Search for "Termux."
- Install the latest version (v0.118.0+).
8.5 Access Termux from Windows (SMB)
Install samba via pkg install samba, configure it, and access your phone’s Linux files via Windows Network.
Part 2: Mastering the Basics (Essential Commands)
Before we go wild, let’s get comfortable. Termux uses a standard Linux filesystem. Then use a VNC viewer app to connect to localhost:5901
| Command | Action | Example |
| :--- | :--- | :--- |
| pwd | Print working directory | Shows you are at /data/data/com.termux/files/home |
| ls | List files | ls -la (shows hidden files + details) |
| cd | Change directory | cd storage/downloads |
| mkdir | Make a new folder | mkdir my_project |
| rm | Remove a file | rm old_file.txt |
| cp | Copy a file | cp file1.txt file2.txt |
| mv | Move/Rename | mv oldname.txt newname.txt |
Pro Tip: You must use the volume-up key + Q to bring up a touch keyboard if you don’t have a physical one. Or install Hacker’s Keyboard for full Ctrl/Alt/Tab keys.