Menu
Dashboard Tutorials Upload
Account Timers
Settings
Beginner · Beginner · 56 min read

Termux Basics — Complete Beginner's Guide

Everything you need to get started with Termux on Android — what it is, how to install it, and a complete reference of 100+ essential Linux commands with descriptions.

Your progress 0%
01

What is Termux?

Termux terminal app on Android
Termux — a full Linux terminal environment running directly on Android, no root required

Termux is a free, open-source Android terminal emulator and Linux environment. It gives you a complete command-line shell on your Android device — no root required, no special firmware, nothing to unlock. Just install the app, open it, and you're in a real Linux shell.

Under the hood, Termux provides its own package manager (pkg / apt), a large repository of pre-compiled Linux tools, and a full POSIX-compatible environment. You can install tools like Python, Node.js, Git, Nmap, Metasploit, and hundreds more — directly on your phone.

Why Termux?
Termux is the foundation for almost every Android-based hacking, scripting, and automation tool. NetHunter Rootless, M@☆ Zero-Rated Scanner, Metasploit, and dozens of other tools all run on top of Termux. Learning Termux basics is the single most important step before using any of them.
Advertisement
02

Watch the Full Walkthrough

⚠ Important — Watch Before Starting
It is strongly recommended to watch this video in full before attempting any commands or installations. The video covers the complete setup flow and explains key concepts that will save you hours of troubleshooting.
Full Termux beginner walkthrough — 37 min · watch before proceeding

The video above covers Termux installation, initial setup, essential commands, and package management from scratch. It's the fastest way to get a mental model of how everything fits together before you start typing commands.

03

Download Termux

Termux is available from several sources. The official builds from GitHub or F-Droid are the only recommended options — they are actively maintained, fully featured, and receive regular updates. The Play Store version is outdated and has restricted functionality.

Do not mix sources
GitHub, F-Droid, and the Play Store each sign Termux with a different certificate key. Installing from one source then updating from another will fail with INSTALL_FAILED_UPDATE_INCOMPATIBLE. Pick one source and stay with it.
Enable Unknown Sources
Since you're installing an APK outside the Play Store, you'll need to enable Install Unknown Apps for your browser or file manager in Android Settings → Apps → Special App Access.
Advertisement
04

First-Time Setup

After installing Termux, open it for the first time. You'll see a black terminal screen — this is your Linux shell. The very first thing you should always do is update and upgrade all packages. This pulls the latest package lists and updates any pre-installed tools.

Step 1 — Update package lists:

bash
$ pkg update

Step 2 — Upgrade all installed packages:

bash
$ pkg upgrade -y

Step 3 — Grant storage access (lets Termux read/write your phone's storage):

bash
$ termux-setup-storage

A dialog will appear asking for storage permission — tap Allow. After this, a ~/storage folder will appear linking to your phone's Downloads, Music, Pictures, and more.

05

Understanding the Shell

When you open Termux, you're placed into a Bash shell (Bourne Again Shell). The shell is the program that reads your commands and runs them. Everything you type is processed here before being executed by the Linux kernel.

The prompt you see — typically $ — is waiting for input. When a command is running you won't see the prompt. When it returns, the prompt reappears and you can type the next command.

Key concepts to know
Commands are case-sensitive — ls and LS are different. Flags modify command behaviour (e.g. -l, -a). Arguments are the targets a command acts on (e.g. a filename). You can chain commands with && (run second only if first succeeds) or | (pipe output of one into the next).
Advertisement
06

100+ Essential Commands Reference

A complete reference of essential Termux and Linux commands, grouped by category. Use the search box to instantly filter any command. Every command here works in Termux — some (marked Termux-specific) are exclusive to the Android environment.

Loading…
Loading commands…
Advertisement
07

Tips for Beginners

A few things that will save you a lot of confusion when starting out with Termux:

Use Tab for autocomplete
Press Tab while typing a command or path to autocomplete it. Press it twice to see all matching options. This prevents typos and saves a huge amount of typing.
Arrow keys scroll command history
Press the up arrow to recall previous commands. Press to go forward again. Run history to see a numbered list of all past commands.
Ctrl+C stops a running command
If a command is running and you want to stop it, press Ctrl+C. This sends an interrupt signal and returns you to the prompt.
Always update before installing
Before installing any tool, always run pkg update && pkg upgrade -y first. Many installation failures happen simply because the package index is stale.
Use termux-wake-lock for long tasks
If you're running a long download or scan, run termux-wake-lock first to prevent Android from suspending the session. Run termux-wake-unlock when done.