এটি Termux-এর বেসিক থেকে অ্যাডভান্সড সব কমান্ডের একমাত্র বাংলা চিট শিট, যেখানে শুধু তালিকা নয়, আমার বাস্তব প্রজেক্টে (আদিম ভল্ট, সুপার ক্যালকুলেটর) ব্যবহৃত কমান্ডগুলোও দেওয়া আছে।

📁 ১. বেসিক ফাইল ও ফোল্ডার অপারেশন

কমান্ডকাজউদাহরণ
pwd
বর্তমান ফোল্ডারের পুরো পাথ দেখায়pwd
ls
বর্তমান ফোল্ডারের ফাইল-ফোল্ডার তালিকাls -la
cd ফোল্ডার
নির্দিষ্ট ফোল্ডারে প্রবেশcd storage/downloads
cd ..
এক ধাপ উপরে যাওয়াcd ..
cd ~
হোম ফোল্ডারে ফিরে যাওয়াcd ~
mkdir ফোল্ডার
নতুন খালি ফোল্ডার তৈরিmkdir project
mkdir -p path
nested ফোল্ডার তৈরিmkdir -p a/b/c
touch ফাইল
নতুন খালি ফাইল তৈরিtouch hello.txt
cp source target
ফাইল/ফোল্ডার কপিcp a.txt b.txt
cp -r source target
ফোল্ডার রিকার্সিভলি কপিcp -r dir1 dir2
mv source target
সরানো / নাম বদলানোmv old.txt new.txt
rm ফাইল
ফাইল মুছে ফেলা (সাবধান!)rm junk.txt
rm -r ফোল্ডার
ফোল্ডার ও ভেতরের সব মুছে ফেলাrm -r old_project
rmdir ফোল্ডার
খালি ফোল্ডার মুছে ফেলাrmdir empty_dir
tree
ফোল্ডারের গঠন গাছের মতো দেখায়tree (আগে pkg install tree)
find . -name "*.txt"
নির্দিষ্ট নামের ফাইল খোঁজাfind . -name "*.html"
grep "টেক্সট" ফাইল
ফাইলের ভেতর টেক্সট খোঁজাgrep "error" log.txt

📦 ২. প্যাকেজ ম্যানেজমেন্ট (pkg / apt)

কমান্ডকাজউদাহরণ
pkg update
প্যাকেজ তালিকা আপডেটpkg update
pkg upgrade
সব প্যাকেজ আপগ্রেডpkg upgrade
pkg install নাম
প্যাকেজ ইন্সটলpkg install nodejs
pkg search নাম
প্যাকেজ খোঁজাpkg search python
pkg list-installed
ইন্সটল করা প্যাকেজের তালিকাpkg list-installed
pkg uninstall নাম
প্যাকেজ আনইন্সটলpkg uninstall nodejs
pkg clean
ক্যাশ পরিষ্কারpkg clean
apt list --upgradable
আপগ্রেডযোগ্য প্যাকেজ দেখায়apt list --upgradable

✍️ ৩. টেক্সট এডিটিং ও ফাইল কন্টেন্ট দেখা

কমান্ডকাজউদাহরণ
micro ফাইল
মাইক্রো এডিটরে ফাইল খোলাmicro server.js
nano ফাইল
ন্যানো এডিটরে ফাইল খোলাnano script.sh
cat ফাইল
সম্পূর্ণ ফাইল দেখাcat hello.txt
head ফাইল
প্রথম ১০ লাইন দেখাhead log.txt
tail ফাইল
শেষ ১০ লাইন দেখাtail log.txt
wc ফাইল
লাইন, ওয়ার্ড, ক্যারেক্টার গোনাwc -l data.csv
echo "টেক্সট"
পর্দায় লেখা বা ফাইলে আউটপুটecho "হ্যালো" > test.txt
sed
স্ট্রিম এডিটর – কন্টেন্ট বদলানোsed -i 's/old/new/g' file.txt

🔧 ৪. গিট (Git) – ভার্সন কন্ট্রোল

কমান্ডকাজউদাহরণ
git init
নতুন রিপোজিটরি শুরুgit init
git clone URL
রিমোট রিপো ক্লোনgit clone https://github.com/user/repo.git
git status
বর্তমান অবস্থাgit status
git add ফাইল
ফাইল স্টেজিংgit add index.html
git add .
সব ফাইল স্টেজgit add .
git commit -m "বার্তা"
স্টেজ করা ফাইল কমিটgit commit -m "initial commit"
git push origin main
রিমোটে পুশgit push origin main
git pull origin main
রিমোট থেকে টানাgit pull origin main
git branch
ব্রাঞ্চের তালিকাgit branch
git checkout -b নাম
নতুন ব্রাঞ্চ তৈরি ও সুইচgit checkout -b feature-x
git merge ব্রাঞ্চ
ব্রাঞ্চ মার্জgit merge feature-x
git log
কমিট ইতিহাসgit log --oneline
git diff
অস্টেজড পরিবর্তন দেখায়git diff
git stash
পরিবর্তন অস্থায়ীভাবে সরানোgit stash | git stash pop
git reset --hard
পূর্বের অবস্থায় ফিরে যাওয়া (সাবধান!)git reset --hard HEAD~1
git remote -v
রিমোট URL দেখায়git remote -v
git push origin --delete ব্রাঞ্চ
রিমোট ব্রাঞ্চ মুছে ফেলাgit push origin --delete old-branch
git pull --rebase
রিবেস করে পুলgit pull --rebase origin main
git tag নাম
ভার্সন ট্যাগgit tag v1.0.0
git fetch origin
রিমোটের পরিবর্তন ডাউনলোড (মার্জ নয়)git fetch origin

🌐 ৫. নেটওয়ার্ক ও ডাউনলোড

কমান্ডকাজউদাহরণ
ping ঠিকানা
নেটওয়ার্ক কানেকশন চেকping google.com
curl URL
URL থেকে ডেটা আনা / API কলcurl https://api.example.com
wget URL
ফাইল ডাউনলোডwget https://example.com/file.zip
ssh user@host
রিমোট সার্ভারে SSHssh root@192.168.1.10
ifconfig
নেটওয়ার্ক ইন্টারফেস তথ্যifconfig
ip addr
আইপি অ্যাড্রেস দেখাip addr

🟢 ৬. Node.js ও npm

কমান্ডকাজউদাহরণ
node ফাইল
জাভাস্ক্রিপ্ট ফাইল রানnode server.js
npm init
package.json তৈরিnpm init -y
npm install প্যাকেজ
প্যাকেজ ইন্সটলnpm install express
npm start
start স্ক্রিপ্ট চালানোnpm start
npm run dev
dev স্ক্রিপ্ট চালানোnpm run dev
npm list -g
গ্লোবাল প্যাকেজ তালিকাnpm list -g --depth=0
npm update
সব প্যাকেজ আপডেটnpm update

👤 ৭. পারমিশন ও ইউজার

কমান্ডকাজউদাহরণ
chmod +x ফাইল
ফাইল এক্সিকিউটেবল করাchmod +x script.sh
chmod 755 ফাইল
নির্দিষ্ট পারমিশন দেওয়াchmod 755 server.js
whoami
বর্তমান ইউজার নাম দেখায়whoami
su
ইউজার পরিবর্তন (সীমিত)su root

🛠️ ৮. টার্মিনাল কাস্টমাইজেশন ও টুলস

কমান্ডকাজউদাহরণ
clear
স্ক্রিন পরিষ্কারclear
history
কমান্ড ইতিহাসhistory
alias
কমান্ডের ছোট নামalias ll='ls -la'
date
তারিখ ও সময়date
cal
ক্যালেন্ডারcal
uptime
কতক্ষণ চলছেuptime
df -h
ডিস্ক ব্যবহারdf -h
du -sh ফোল্ডার
ফোল্ডারের আকারdu -sh project
ps aux
চলমান প্রসেসps aux
kill PID
প্রসেস বন্ধkill 1234

📱 ৯. Termux-নির্দিষ্ট কমান্ড

কমান্ডকাজউদাহরণ
termux-setup-storage
স্টোরেজ অ্যাক্সেসtermux-setup-storage
termux-open ফাইল
অন্য অ্যাপ দিয়ে ফাইল খোলাtermux-open index.html
termux-open-url URL
ব্রাউজারে URL খোলাtermux-open-url https://google.com
termux-vibrate
ফোন ভাইব্রেটtermux-vibrate
termux-notification
নোটিফিকেশন দেখানোtermux-notification -t "Hello"
termux-battery-status
ব্যাটারি অবস্থাtermux-battery-status
termux-change-repo
মিরর পরিবর্তনtermux-change-repo

📦 ১০. আমার প্রজেক্টের বাস্তব কমান্ড

নিচের টেবিলে আমি আমার আদিম ভল্ট (aadimvault) ও সুপার ক্যালকুলেটর PWA প্রোজেক্ট তৈরির সময় ব্যবহৃত কমান্ডগুলো দিয়েছি।

প্রজেক্ট / ধাপকমান্ডকাজ কী করে
Termux সাধারণ সেটআপ
pkg update -y && pkg upgrade -y
প্যাকেজ রিপো আপডেট
pkg install nodejs git micro imagemagick -y
জরুরি টুল ইন্সটল
termux-setup-storage
শেয়ার্ড স্টোরেজ এক্সেস
গিট কনফিগারেশন
git config --global user.name "Milan Biswas"
গিট ইউজারনেম সেট
git config --global user.email "milanbiswasmilan19@gmail.com"
গিট ইমেইল সেট
আদিম ভল্ট — ক্লোন ও কাঠামো
cd ~/storage/shared/
শেয়ার্ড স্টোরেজে যাও
git clone https://github.com/BanglaGolpoGalaxy/aadimvault.git
রিপো ক্লোন
cd aadimvault
প্রোজেক্ট ফোল্ডারে ঢোকা
mkdir -p database middleware routes uploads public/css public/js public/images public/blog
সব ফোল্ডার তৈরি
touch server.js .env .env.example .gitignore README.md BLUEPRINT.md LICENSE
রুট ফাইল তৈরি
touch database/db.js middleware/auth.js routes/auth.js routes/products.js
ব্যাকএন্ড ফাইল
touch public/index.html public/login.html public/upload.html public/product.html public/cart.html public/admin.html
ফ্রন্টএন্ড পেজ
touch public/css/style.css public/js/main.js public/js/auth.js public/js/products.js public/js/utils.js public/js/admin.js
CSS ও JS ফাইল
touch uploads/.gitkeep public/images/.gitkeep
খালি ফোল্ডার গিট ট্র্যাক
touch public/blog/episode-01.html
ব্লগ পর্ব ফাইল
আদিম ভল্ট — প্যাকেজ
npm init -y
package.json বানানো
npm install express sql.js multer jsonwebtoken bcryptjs cors dotenv
মূল প্যাকেজ ইন্সটল
আদিম ভল্ট — ফাইল এডিট
micro .gitignore
micro .env
micro README.md
micro BLUEPRINT.md
কনফিগ ফাইল পূরণ
micro server.js
প্রধান সার্ভার ফাইল
micro database/db.js
SQLite ডাটাবেস লজিক
micro middleware/auth.js
JWT মিডলওয়্যার
micro routes/auth.js
রেজিস্টার/লগইন রাউট
micro routes/products.js
প্রোডাক্ট CRUD API
micro public/index.html
micro public/css/style.css
micro public/js/main.js
micro public/login.html
micro public/upload.html
micro public/product.html
micro public/admin.html
micro public/js/admin.js
ফ্রন্টএন্ড ফাইল
আদিম ভল্ট — লোকাল টেস্ট
node server.js
সার্ভার চালু
node test-db.js
ডাটাবেস টেবিল চেক
curl -X POST http://localhost:3000/api/auth/register \
  -H "Content-Type: application/json" \
  -d '{"name":"Milan","email":"milan@example.com","password":"123456"}'
রেজিস্টার টেস্ট
curl -X POST http://localhost:3000/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"milan@example.com","password":"123456"}'
লগইন টেস্ট
TOKEN="eyJ..."
curl -X POST http://localhost:3000/api/products \
  -H "Authorization: Bearer $TOKEN" \
  -F "image=@test.jpg" \
  -F "title=প্রাচীন ব্রোঞ্জ মূর্তি" \
  -F "price=25000"
প্রোডাক্ট আপলোড টেস্ট
curl http://localhost:3000/api/products
সব প্রোডাক্ট দেখা
sqlite3 database/bazaar.db "UPDATE users SET role='admin' WHERE email='milan@example.com';"
প্রথম অ্যাডমিন তৈরি
আদিম ভল্ট — গিট
git config --global --add safe.directory /storage/emulated/0/aadimvault
dubious ownership ঠিক করা
git add -A
সব ফাইল স্টেজ
git commit -m "পরিবর্তনের বিবরণ" && git push origin main
কমিট করে পুশ
রেন্ডার ডিপ্লয়মেন্ট
rm -f database/db.js && micro database/db.js
DB_PATH এডিট
rm -f server.js && micro server.js
আপলোড পাথ ও ফোল্ডার তৈরি
rm -f routes/products.js && micro routes/products.js
Multer ডাইনামিক পাথ
rm -f routes/admin.js && micro routes/admin.js
ফোর্স-অ্যাডমিন রুট
rm -f middleware/admin.js && micro middleware/admin.js
অ্যাডমিন মিডলওয়্যার
সুপার ক্যালকুলেটর PWA
cd ~/storage/shared/
git clone https://github.com/BanglaGolpoGalaxy/portfolio.git
পোর্টফোলিও ক্লোন
cd portfolio && mkdir -p super_calculator
ক্যালকুলেটর ফোল্ডার তৈরি
mv super_calculator.html manifest.json service-worker.js icon-*.png super_calculator/
ফাইল সরানো
cd super_calculator && micro manifest.json
PWA ম্যানিফেস্ট
micro service-worker.js
সার্ভিস ওয়ার্কার
micro super_calculator.html
PWA লিংক ও ইন্সটল বাটন
pkg install imagemagick -y
আইকন বানানোর টুল
convert -size 192x192 xc:'#1e293b' -fill '#38bdf8' \
  -gravity center -pointsize 90 -annotate 0 'SC' icon-192.png
ছোট আইকন তৈরি
convert -size 512x512 xc:'#1e293b' -fill '#38bdf8' \
  -gravity center -pointsize 250 -annotate 0 'SC' icon-512.png
বড় আইকন তৈরি
cd ~/storage/shared/portfolio
git add super_calculator/
git commit -m "PWA ও আইকন"
git push origin main
পুশ
git config --global --add safe.directory /storage/emulated/0/portfolio
dubious ownership ঠিক
git pull origin main --no-rebase && git push origin main
মার্জ সমাধান
সাধারণ গিট কমান্ড
git status
বর্তমান অবস্থা
git log --oneline
কমিটের তালিকা
git remote -v
রিমোট URL
git stash
অস্থায়ী পরিবর্তন লুকানো
git checkout -- <file>
একটি ফাইল আগের অবস্থায় ফেরানো

If you're new to Termux, the first thing you need is a list of commands — what each command does and how to use it. The real power of Termux lies in its command line. Here I've organized all essential commands from basic to advanced level in table format.

Each command is explained in simple English with examples. At the end, I've included the exact commands I used in my real projects (AadimVault, Super Calculator) so you can see them in action.

📁 1. Basic File & Folder Operations

CommandWhat it doesExample
pwd
Print working directorypwd
ls
List files and foldersls -la
cd folder
Change directorycd storage/downloads
cd ..
Go up one levelcd ..
cd ~
Go to home directorycd ~
mkdir folder
Create a new foldermkdir project
mkdir -p path
Create nested foldersmkdir -p a/b/c
touch file
Create an empty filetouch hello.txt
cp source target
Copy file or foldercp a.txt b.txt
cp -r source target
Copy folder recursivelycp -r dir1 dir2
mv source target
Move or renamemv old.txt new.txt
rm file
Remove file (caution!)rm junk.txt
rm -r folder
Remove folder and contentsrm -r old_project
rmdir folder
Remove empty folderrmdir empty_dir
tree
Show folder structure as treetree
find . -name "*.txt"
Find files by namefind . -name "*.html"
grep "text" file
Search text inside filesgrep "error" log.txt

📦 2. Package Management (pkg / apt)

CommandWhat it doesExample
pkg update
Update package listpkg update
pkg upgrade
Upgrade all packagespkg upgrade
pkg install name
Install a packagepkg install nodejs
pkg search name
Search for a packagepkg search python
pkg list-installed
List installed packagespkg list-installed
pkg uninstall name
Uninstall a packagepkg uninstall nodejs
pkg clean
Clean package cachepkg clean
apt list --upgradable
Show upgradable packagesapt list --upgradable

✍️ 3. Text Editing & File Content

CommandWhat it doesExample
micro file
Open file in micro editormicro server.js
nano file
Open file in nano editornano script.sh
cat file
View entire file contentcat hello.txt
head file
View first 10 lineshead log.txt
tail file
View last 10 linestail log.txt
wc file
Count lines, words, characterswc -l data.csv
echo "text"
Print text or write to fileecho "Hello" > test.txt
sed
Stream editor – replace textsed -i 's/old/new/g' file.txt

🔧 4. Git – Version Control

CommandWhat it doesExample
git init
Initialize a new git repositorygit init
git clone URL
Clone a remote repositorygit clone https://github.com/user/repo.git
git status
Show working tree statusgit status
git add file
Stage a filegit add index.html
git add .
Stage all filesgit add .
git commit -m "msg"
Commit staged changesgit commit -m "initial commit"
git push origin main
Push to remotegit push origin main
git pull origin main
Pull from remotegit pull origin main
git branch
List branchesgit branch
git checkout -b name
Create and switch to new branchgit checkout -b feature-x
git merge branch
Merge a branchgit merge feature-x
git log
Show commit historygit log --oneline
git diff
Show unstaged differencesgit diff
git stash
Temporarily save changesgit stash | git stash pop
git reset --hard
Reset to previous state (caution!)git reset --hard HEAD~1
git remote -v
Show remote URLsgit remote -v
git push origin --delete branch
Delete remote branchgit push origin --delete old-branch
git pull --rebase
Pull with rebase for clean historygit pull --rebase origin main
git tag name
Tag a commit (version marker)git tag v1.0.0
git fetch origin
Download remote changes (no merge)git fetch origin

🌐 5. Network & Download

CommandWhat it doesExample
ping address
Check network connectivityping google.com
curl URL
Fetch data from URL / API callcurl https://api.example.com
wget URL
Download a filewget https://example.com/file.zip
ssh user@host
SSH into a remote serverssh root@192.168.1.10
ifconfig
Network interface infoifconfig
ip addr
Show IP addressesip addr

🟢 6. Node.js & npm

CommandWhat it doesExample
node file
Run a JavaScript filenode server.js
npm init
Create package.jsonnpm init -y
npm install package
Install a packagenpm install express
npm start
Run start scriptnpm start
npm run dev
Run dev scriptnpm run dev
npm list -g
List global packagesnpm list -g --depth=0
npm update
Update all packagesnpm update

👤 7. Permissions & User

CommandWhat it doesExample
chmod +x file
Make file executablechmod +x script.sh
chmod 755 file
Set specific permissionschmod 755 server.js
whoami
Show current userwhoami
su
Switch user (limited in Termux)su root

🛠️ 8. Terminal Customization & Tools

CommandWhat it doesExample
clear
Clear terminal screenclear
history
Show command historyhistory
alias
Create command shortcutalias ll='ls -la'
date
Show current date & timedate
cal
Show calendarcal
uptime
Show system uptimeuptime
df -h
Show disk usagedf -h
du -sh folder
Show folder sizedu -sh project
ps aux
List running processesps aux
kill PID
Kill a processkill 1234

📱 9. Termux-Specific Commands

CommandWhat it doesExample
termux-setup-storage
Grant storage accesstermux-setup-storage
termux-open file
Open file with other apptermux-open index.html
termux-open-url URL
Open URL in browsertermux-open-url https://google.com
termux-vibrate
Vibrate phonetermux-vibrate
termux-notification
Show notificationtermux-notification -t "Hello"
termux-battery-status
Show battery statustermux-battery-status
termux-change-repo
Change mirrortermux-change-repo

📦 10. Real Project Commands

Below are the exact commands I used while building my AadimVault and Super Calculator PWA projects.

Project / StepCommandWhat it does
Termux Basic Setup
pkg update -y && pkg upgrade -y
Update package repo
pkg install nodejs git micro imagemagick -y
Install essential tools
termux-setup-storage
Access shared storage
Git Configuration
git config --global user.name "Milan Biswas"
Set git username
git config --global user.email "milanbiswasmilan19@gmail.com"
Set git email
AadimVault — Clone & Structure
cd ~/storage/shared/
Go to shared storage
git clone https://github.com/BanglaGolpoGalaxy/aadimvault.git
Clone repo
cd aadimvault
Enter project folder
mkdir -p database middleware routes uploads public/css public/js public/images public/blog
Create all folders
touch server.js .env .env.example .gitignore README.md BLUEPRINT.md LICENSE
Create root files
touch database/db.js middleware/auth.js routes/auth.js routes/products.js
Backend files
touch public/index.html public/login.html public/upload.html public/product.html public/cart.html public/admin.html
Frontend pages
touch public/css/style.css public/js/main.js public/js/auth.js public/js/products.js public/js/utils.js public/js/admin.js
CSS & JS files
touch uploads/.gitkeep public/images/.gitkeep
Track empty folders
touch public/blog/episode-01.html
Blog episode file
AadimVault — Packages
npm init -y
Create package.json
npm install express sql.js multer jsonwebtoken bcryptjs cors dotenv
Install core packages
AadimVault — File Edit
micro .gitignore
micro .env
micro README.md
micro BLUEPRINT.md
Fill config files
micro server.js
Main server file
micro database/db.js
SQLite database logic
micro middleware/auth.js
JWT middleware
micro routes/auth.js
Register/Login routes
micro routes/products.js
Product CRUD API
micro public/index.html
micro public/css/style.css
micro public/js/main.js
micro public/login.html
micro public/upload.html
micro public/product.html
micro public/admin.html
micro public/js/admin.js
Frontend files
AadimVault — Local Test
node server.js
Start server
node test-db.js
Check database tables
curl -X POST http://localhost:3000/api/auth/register \
  -H "Content-Type: application/json" \
  -d '{"name":"Milan","email":"milan@example.com","password":"123456"}'
Test register
curl -X POST http://localhost:3000/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"milan@example.com","password":"123456"}'
Test login
TOKEN="eyJ..."
curl -X POST http://localhost:3000/api/products \
  -H "Authorization: Bearer $TOKEN" \
  -F "image=@test.jpg" \
  -F "title=Ancient Bronze Statue" \
  -F "price=25000"
Test product upload
curl http://localhost:3000/api/products
View all products
sqlite3 database/bazaar.db "UPDATE users SET role='admin' WHERE email='milan@example.com';"
Create first admin
AadimVault — Git
git config --global --add safe.directory /storage/emulated/0/aadimvault
Fix dubious ownership
git add -A
Stage all files
git commit -m "Changes description" && git push origin main
Commit and push
Render Deployment
rm -f database/db.js && micro database/db.js
Edit DB_PATH
rm -f server.js && micro server.js
Edit upload path
rm -f routes/products.js && micro routes/products.js
Dynamic Multer path
rm -f routes/admin.js && micro routes/admin.js
Force-admin route
rm -f middleware/admin.js && micro middleware/admin.js
Admin middleware
Super Calculator PWA
cd ~/storage/shared/
git clone https://github.com/BanglaGolpoGalaxy/portfolio.git
Clone portfolio
cd portfolio && mkdir -p super_calculator
Create calculator folder
mv super_calculator.html manifest.json service-worker.js icon-*.png super_calculator/
Move files
cd super_calculator && micro manifest.json
Edit PWA manifest
micro service-worker.js
Edit service worker
micro super_calculator.html
Add PWA link & install button
pkg install imagemagick -y
Install icon tool
convert -size 192x192 xc:'#1e293b' -fill '#38bdf8' \
  -gravity center -pointsize 90 -annotate 0 'SC' icon-192.png
Create small icon
convert -size 512x512 xc:'#1e293b' -fill '#38bdf8' \
  -gravity center -pointsize 250 -annotate 0 'SC' icon-512.png
Create large icon
cd ~/storage/shared/portfolio
git add super_calculator/
git commit -m "PWA and icons"
git push origin main
Push
git config --global --add safe.directory /storage/emulated/0/portfolio
Fix dubious ownership
git pull origin main --no-rebase && git push origin main
Merge fix
General Git Commands
git status
Current status
git log --oneline
Commit list
git remote -v
Remote URL
git stash
Temporarily hide changes
git checkout -- <file>
Restore a file
← পোর্টফোলিও ← Portfolio Termux সিরিজ → Termux Series →