Termux Complete Tutorial
Termux is a terminal emulator and Linux environment for Android that works without rooting. To get started, follow this guide covering installation, configuration, and basic file management. 1. Installation and Initial Setup
For the most stable and up-to-date version, it is recommended to download Termux from F-Droid rather than the Google Play Store, as the Play Store version is no longer maintained. Download: Get the latest APK from the Termux F-Droid page.
Update Repositories: Once opened, run the following command to ensure all packages are current:pkg update && pkg upgrade
Enable Storage Access: To allow Termux to interact with your phone's internal storage (like your Downloads or DCIM folders), run:termux-setup-storage 2. Essential Commands
Getting around the Linux environment requires knowing a few fundamental commands: ls: Lists all files and folders in your current directory.
cd : Changes your directory to the specified folder. mkdir : Creates a new directory/folder. rm : Deletes a file. pwd: Shows the path of your current working directory. 3. Working with Text and Files
To "generate text" or create files, you typically use built-in editors or redirection commands. termux complete tutorial
I want to learn or know this tech plz. How can I start ?? : r/termux
Master Termux: The Complete Beginner’s Guide to Linux on Android
Ever wished you could carry a full-blown Linux terminal in your pocket? Whether you're a developer, a cybersecurity enthusiast, or just a tech tinkerer,
is your gateway. It’s an Android terminal emulator and Linux environment app that works directly with no rooting required
In this guide, we’ll walk through everything from installation to running your first scripts. 1. Installation: Getting Started the Right Way
Don't just download any version from the Play Store—the version there is outdated. For the latest features and security updates, you should: Download from F-Droid or GitHub: Grab the APK from the F-Droid repository Official GitHub Releases Initialize the Environment: Termux is a terminal emulator and Linux environment
Open the app and wait for the "Installing bootstrap packages" process to finish. Set Your Mirrors: termux-change-repo
and select the mirror closest to you to ensure faster downloads 2. Essential First Commands Termux uses a minimal base system. You’ll use the
package managers to add tools. Start by updating your system: pkg update && pkg upgrade Use code with caution. Copied to clipboard Commonly Used Commands: : List files in your current directory. : Change directory (e.g., cd /sdcard to access phone storage). : Create a new folder. pkg install [package_name] : Install new tools like Python, Git, or Nano 3. Setting Up Storage Access
By default, Termux is isolated. To let it "see" your phone’s photos, downloads, and files, run: termux-setup-storage Use code with caution. Copied to clipboard Grant the permission pop-up, and you’ll now see a
folder in your home directory that links to your internal memory. 4. Popular Tools to Install Once you’re comfortable, try installing these essentials: pkg install python (Great for running automation scripts). pkg install git (To clone projects from GitHub). pkg install openssh (To access remote servers or your PC) pkg install nano (A simple text editor for coding on the go) 5. Pro Tips for Mobile Power Users The "Extra Keys" Row: Termux provides a row above your keyboard for keys like . You can customize this by editing the ~/.termux/termux.properties SSH into your Phone: Tired of the tiny screen? Start the SSH daemon ( ) and connect to your phone from your laptop’s keyboard.
Swipe from the left edge of the screen to open new terminal sessions or switch between them. Final Thoughts Restore later: pkg install $(cat termux_packages
Termux turns your phone from a consumption device into a production powerhouse. Whether you're learning coding basics or managing remote servers while on a bus, the possibilities are endless.
What’s the first tool you’re going to install on Termux?
Termux is a powerful, open-source terminal emulator for Android that provides a complete Linux environment without requiring root access. It allows you to run a full command-line system on your mobile device for programming, automation, and advanced networking tasks. 1. Getting Started & Installation
For the most stable and up-to-date experience, use the Termux F-Droid page rather than the Play Store, as the Play Store version is often outdated and may have compatibility issues on newer Android versions.
8.3 Backup Your Environment
Save your installed packages list:
pkg list-installed > termux_packages.txt
Restore later:
pkg install $(cat termux_packages.txt)
Tutorial B: Access Your Phone’s Storage
Termux lives in its own sandbox. To copy a movie from your Downloads folder to Termux:
cd ~/storage/downloads # Navigate to phone's Downloads
cp movie.mp4 ~/ # Copy to Termux home
cd ~/ # Go back home
ls # See movie.mp4 listed
Development & compilers
- Python:
pkg install python— use venv:python -m venv ~/.venvs/myenv source ~/.venvs/myenv/bin/activate pip install --user <pkg> - Node.js:
pkg install nodejs— npm works; global installs go to $PREFIX/lib/node_modules unless using nvm-like wrappers. - C/C++:
pkg install clang make— compile with clang; use./configure && makefor autotools when supported. - Git:
pkg install git— configure user.name and user.email, use SSH or https remotes.
10. Useful Scripts & Automation
Termux Private Directory
All files in ~/ are private to Termux and deleted if app data is cleared. Use shared storage for permanent files.