Termux is an Android app where you can type commands to do things on your phone — like creating files, making folders, and more. It looks scary at first but it is actually very simple.
A command is just a word you type and press Enter. That's it. For example, if you type ls and press Enter, Termux shows you all your files. Easy right?
https://termux.achik.us/termux-basic-commands-list-with-examples/
| Command | What it does | Example |
|---|---|---|
pwd |
Shows which folder you are in | pwd |
ls |
Shows all files and folders | ls |
ls -a |
Shows hidden files too | ls -a |
cd |
Opens a folder | cd foldername |
cd .. |
Goes back one folder | cd .. |
cd ~ |
Goes to home folder | cd ~ |
mkdir |
Makes a new folder | mkdir myfolder |
rmdir |
Deletes an empty folder | rmdir myfolder |
touch |
Makes a new empty file | touch file.txt |
cp |
Copies a file | cp file.txt copy.txt |
mv |
Moves or renames a file | mv old.txt new.txt |
rm |
Deletes a file | rm file.txt |
rm -r |
Deletes a whole folder | rm -r foldername |
clear |
Clears the screen | clear |
exit |
Closes Termux | exit |
Original post: Termux Basic Commands List with Examples
Make a folder and go inside it:
mkdir test
cd testMake a file:
touch hello.txtCheck your files:
lsDelete a file:
rm hello.txtIf you forget what a command does, use --help:
ls --helpJust open Termux and try these commands one by one. You will understand them in 10 minutes. Reading alone won't help — you have to actually type them.
These basic commands are enough to get started. Once you get comfortable with these, learning the advanced stuff becomes much easier.