Termux Basics Cheatsheet

A comprehensive guide for students learning Linux/Termux on mobile devices.

📂 FILE MANAGEMENT
CommandActionExample
lsList files in current directoryls -la
cdChange directorycd /sdcard
pwdPrint working directorypwd
mkdirCreate a new foldermkdir hacking_tools
rmRemove a filerm file.txt
rm -rfRemove a folder recursivelyrm -rf folder_name
cpCopy a filecp old.txt new.txt
mvMove or Rename a filemv file.txt /sdcard/
touchCreate an empty filetouch script.py
📦 PACKAGE MANAGEMENT
CommandActionExample
pkg updateUpdate package listspkg update
pkg upgradeUpgrade installed packagespkg upgrade -y
pkg installInstall a new packagepkg install python
pkg uninstallRemove a packagepkg uninstall git
pkg searchFind a packagepkg search nmap
pkg list-allList all available packagespkg list-all
🌐 NETWORKING
CommandActionExample
pingCheck connectivity to hostping google.com
ifconfigView network interfacesifconfig
curlTransfer data from URLcurl -O https://site.com/file.zip
wgetDownload files from webwget http://link.com/payload.sh
nmapNetwork port scannernmap 192.168.1.1
sshSecure Shell accessssh user@ip_address
whoisDomain WHOIS lookupwhois example.com

[ End of Quick Guide ]