Termux commands become easier when you learn a small set of everyday actions first. You do not need to memorize a full Linux manual to move around folders, inspect files, install packages and run simple programs. This cheat sheet explains the commands beginners use most often, what each command does and how to avoid common mistakes. Commands are typed at the Termux prompt; do not include the prompt symbol itself when copying an example.
People Also Search For
Complete link verification to access the official Termux F-Droid download.
Navigate Between Folders
Use pwd to display your current directory, ls to list its contents and cd foldername to enter a folder. Run cd .. to move up one level and cd ~ to return to your Termux home directory. If a path contains spaces, wrap it in quotes.
Create and Read Files
The mkdir practice command creates a directory. touch notes.txt creates an empty file, while cat notes.txt prints a text file to the terminal. Use a terminal editor such as nano notes.txt when you want to write or modify text interactively. Check the command manual or help output if its options are unfamiliar.
Install and Update Packages
Termux uses a package manager. Run pkg update to refresh package information and pkg upgrade to upgrade installed packages. Install a tool with pkg install nano or another package name available in your configured repositories. Review prompts carefully rather than accepting commands you do not understand.
Commands to Use Carefully
Commands such as rm delete files, and recursive or force options can make recovery difficult. Confirm the current directory with pwd and inspect target names before deleting anything. Never paste a long command from an unknown source without reading what it does. Termux runs commands with Android app permissions; it is not automatically root access.
Frequently Asked Questions
What command opens the Termux home folder?
Run cd ~ to return to the Termux home directory.
How do I install a command-line tool?
Use pkg install package-name after updating package information.
Does Termux mean my phone is rooted?
No. Termux normally runs as an Android app under its app user and does not grant root privileges by itself.
Related Termux Guides
- How to Download and Install Termux from F-Droid (Official Guide)
- How to Install Python in Termux and Run Your First Script
- How to Install Git in Termux and Clone a Repository
Official reference: Termux installation notes on GitHub. Use the download button above to open the official F-Droid listing.
Safety note: Termux is a powerful command-line environment. Only install packages from trusted repositories and review commands before running them, especially when they request elevated privileges, personal data or broad file access.
