এটি 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 | রিমোট সার্ভারে SSH | ssh 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 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 | ফ্রন্টএন্ড ফাইল | |
| আদিম ভল্ট — লোকাল টেস্ট | 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
| Command | What it does | Example |
|---|---|---|
pwd | Print working directory | pwd |
ls | List files and folders | ls -la |
cd folder | Change directory | cd storage/downloads |
cd .. | Go up one level | cd .. |
cd ~ | Go to home directory | cd ~ |
mkdir folder | Create a new folder | mkdir project |
mkdir -p path | Create nested folders | mkdir -p a/b/c |
touch file | Create an empty file | touch hello.txt |
cp source target | Copy file or folder | cp a.txt b.txt |
cp -r source target | Copy folder recursively | cp -r dir1 dir2 |
mv source target | Move or rename | mv old.txt new.txt |
rm file | Remove file (caution!) | rm junk.txt |
rm -r folder | Remove folder and contents | rm -r old_project |
rmdir folder | Remove empty folder | rmdir empty_dir |
tree | Show folder structure as tree | tree |
find . -name "*.txt" | Find files by name | find . -name "*.html" |
grep "text" file | Search text inside files | grep "error" log.txt |
📦 2. Package Management (pkg / apt)
| Command | What it does | Example |
|---|---|---|
pkg update | Update package list | pkg update |
pkg upgrade | Upgrade all packages | pkg upgrade |
pkg install name | Install a package | pkg install nodejs |
pkg search name | Search for a package | pkg search python |
pkg list-installed | List installed packages | pkg list-installed |
pkg uninstall name | Uninstall a package | pkg uninstall nodejs |
pkg clean | Clean package cache | pkg clean |
apt list --upgradable | Show upgradable packages | apt list --upgradable |
✍️ 3. Text Editing & File Content
| Command | What it does | Example |
|---|---|---|
micro file | Open file in micro editor | micro server.js |
nano file | Open file in nano editor | nano script.sh |
cat file | View entire file content | cat hello.txt |
head file | View first 10 lines | head log.txt |
tail file | View last 10 lines | tail log.txt |
wc file | Count lines, words, characters | wc -l data.csv |
echo "text" | Print text or write to file | echo "Hello" > test.txt |
sed | Stream editor – replace text | sed -i 's/old/new/g' file.txt |
🔧 4. Git – Version Control
| Command | What it does | Example |
|---|---|---|
git init | Initialize a new git repository | git init |
git clone URL | Clone a remote repository | git clone https://github.com/user/repo.git |
git status | Show working tree status | git status |
git add file | Stage a file | git add index.html |
git add . | Stage all files | git add . |
git commit -m "msg" | Commit staged changes | git commit -m "initial commit" |
git push origin main | Push to remote | git push origin main |
git pull origin main | Pull from remote | git pull origin main |
git branch | List branches | git branch |
git checkout -b name | Create and switch to new branch | git checkout -b feature-x |
git merge branch | Merge a branch | git merge feature-x |
git log | Show commit history | git log --oneline |
git diff | Show unstaged differences | git diff |
git stash | Temporarily save changes | git stash | git stash pop |
git reset --hard | Reset to previous state (caution!) | git reset --hard HEAD~1 |
git remote -v | Show remote URLs | git remote -v |
git push origin --delete branch | Delete remote branch | git push origin --delete old-branch |
git pull --rebase | Pull with rebase for clean history | git 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
| Command | What it does | Example |
|---|---|---|
ping address | Check network connectivity | ping google.com |
curl URL | Fetch data from URL / API call | curl https://api.example.com |
wget URL | Download a file | wget https://example.com/file.zip |
ssh user@host | SSH into a remote server | ssh root@192.168.1.10 |
ifconfig | Network interface info | ifconfig |
ip addr | Show IP addresses | ip addr |
🟢 6. Node.js & npm
| Command | What it does | Example |
|---|---|---|
node file | Run a JavaScript file | node server.js |
npm init | Create package.json | npm init -y |
npm install package | Install a package | npm install express |
npm start | Run start script | npm start |
npm run dev | Run dev script | npm run dev |
npm list -g | List global packages | npm list -g --depth=0 |
npm update | Update all packages | npm update |
👤 7. Permissions & User
| Command | What it does | Example |
|---|---|---|
chmod +x file | Make file executable | chmod +x script.sh |
chmod 755 file | Set specific permissions | chmod 755 server.js |
whoami | Show current user | whoami |
su | Switch user (limited in Termux) | su root |
🛠️ 8. Terminal Customization & Tools
| Command | What it does | Example |
|---|---|---|
clear | Clear terminal screen | clear |
history | Show command history | history |
alias | Create command shortcut | alias ll='ls -la' |
date | Show current date & time | date |
cal | Show calendar | cal |
uptime | Show system uptime | uptime |
df -h | Show disk usage | df -h |
du -sh folder | Show folder size | du -sh project |
ps aux | List running processes | ps aux |
kill PID | Kill a process | kill 1234 |
📱 9. Termux-Specific Commands
| Command | What it does | Example |
|---|---|---|
termux-setup-storage | Grant storage access | termux-setup-storage |
termux-open file | Open file with other app | termux-open index.html |
termux-open-url URL | Open URL in browser | termux-open-url https://google.com |
termux-vibrate | Vibrate phone | termux-vibrate |
termux-notification | Show notification | termux-notification -t "Hello" |
termux-battery-status | Show battery status | termux-battery-status |
termux-change-repo | Change mirror | termux-change-repo |
📦 10. Real Project Commands
Below are the exact commands I used while building my AadimVault and Super Calculator PWA projects.
| Project / Step | Command | What 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 | 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 | 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 |
💬 মন্তব্য / Comments