Welcome to your go-to Termux Commands Cheat Sheet. This README will walk you through essential commands to help you get productive with Termux on Android.
pkg update && pkg upgrade -ypkg install git curl wget nano vim zip unzip -ypkg update
pkg upgradepkg search <package-name>
pkg install <package-name>pkg uninstall <package-name>pkg install git
git clone <repo-url>pkg install python
python --version
pip install <package-name>pkg install nodejs
node -v
npm install -g <package>termux-setup-storageAllows access to internal storage under
/storage/emulated/0
ls # List files
cd <dir> # Change directory
mkdir <dir> # Make directory
touch <file> # Create file
rm <file/dir> # Delete file or directory
cp <src> <dest> # Copy
mv <src> <dest> # Move/Renameclear # Clear screen
exit # Exit Termux session
CTRL + C # Cancel command
CTRL + D # Logout/EOFuname -a # OS and kernel info
df -h # Disk space
top # Process viewerpkg install zsh
chsh -s zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"pkg install clang
clang file.c -o output
./outputpkg install openjdk-17
javac HelloWorld.java
java HelloWorldpkg install openssh nmap net-tools
ifconfig # IP config
ssh user@host # SSH into system
nmap <target> # Port scanIf issues occur with storage or internet:
termux-change-repo # Switch repo if mirrors are broken
termux-setup-storage # Re-enable storage access- Always use
pkgoveraptin Termux. - For rooted users, combine with tools like
tsuorsudofor extra control. - Back up your important scripts with
git.
termux-setup-storage
pkg update && pkg upgrade -y
pkg install git nodejs python -y
git clone https://github.com/your-repo/project
cd project
npm install
node app.jsThis README is open-sourced under the MIT License. Use it, modify it, share it.