Skip to content

PuneetKumar1790/TERMUX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

πŸ“± Termux Commands Guide

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.


βš™οΈ Getting Started

Install Termux (from F-Droid preferred)

pkg update && pkg upgrade -y

Install basic packages

pkg install git curl wget nano vim zip unzip -y

πŸ› οΈ Package Management

Update & Upgrade

pkg update
pkg upgrade

Search & Install Packages

pkg search <package-name>
pkg install <package-name>

Remove Package

pkg uninstall <package-name>

πŸ”§ Essential Tools

Git

pkg install git
git clone <repo-url>

Python

pkg install python
python --version
pip install <package-name>

Node.js & npm

pkg install nodejs
node -v
npm install -g <package>

Storage Access

termux-setup-storage

Allows access to internal storage under /storage/emulated/0


πŸ“‚ File & Directory Operations

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/Rename

🧠 Useful Shortcuts

clear             # Clear screen
exit              # Exit Termux session
CTRL + C          # Cancel command
CTRL + D          # Logout/EOF

πŸ’» System Info

uname -a          # OS and kernel info
df -h             # Disk space
top               # Process viewer

πŸ“¦ Custom Setups

ZSH with Oh My Zsh

pkg install zsh
chsh -s zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

πŸ§ͺ Compile & Run Code

C / C++

pkg install clang
clang file.c -o output
./output

Java

pkg install openjdk-17
javac HelloWorld.java
java HelloWorld

πŸ“‘ Networking Tools

pkg install openssh nmap net-tools
ifconfig         # IP config
ssh user@host    # SSH into system
nmap <target>    # Port scan

πŸ”’ Termux Permissions

If issues occur with storage or internet:

termux-change-repo      # Switch repo if mirrors are broken
termux-setup-storage    # Re-enable storage access

πŸ”š Final Tips

  • Always use pkg over apt in Termux.
  • For rooted users, combine with tools like tsu or sudo for extra control.
  • Back up your important scripts with git.

πŸ“ Example Workflow

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.js

🧾 License

This README is open-sourced under the MIT License. Use it, modify it, share it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors