Termux Basics Cheatsheet
A comprehensive guide for students learning Linux/Termux on mobile devices.
📂 FILE MANAGEMENT
| Command | Action | Example |
|---|---|---|
| ls | List files in current directory | ls -la |
| cd | Change directory | cd /sdcard |
| pwd | Print working directory | pwd |
| mkdir | Create a new folder | mkdir hacking_tools |
| rm | Remove a file | rm file.txt |
| rm -rf | Remove a folder recursively | rm -rf folder_name |
| cp | Copy a file | cp old.txt new.txt |
| mv | Move or Rename a file | mv file.txt /sdcard/ |
| touch | Create an empty file | touch script.py |
📦 PACKAGE MANAGEMENT
| Command | Action | Example |
|---|---|---|
| pkg update | Update package lists | pkg update |
| pkg upgrade | Upgrade installed packages | pkg upgrade -y |
| pkg install | Install a new package | pkg install python |
| pkg uninstall | Remove a package | pkg uninstall git |
| pkg search | Find a package | pkg search nmap |
| pkg list-all | List all available packages | pkg list-all |
🌐 NETWORKING
| Command | Action | Example |
|---|---|---|
| ping | Check connectivity to host | ping google.com |
| ifconfig | View network interfaces | ifconfig |
| curl | Transfer data from URL | curl -O https://site.com/file.zip |
| wget | Download files from web | wget http://link.com/payload.sh |
| nmap | Network port scanner | nmap 192.168.1.1 |
| ssh | Secure Shell access | ssh user@ip_address |
| whois | Domain WHOIS lookup | whois example.com |
[ End of Quick Guide ]