ဒီပို႕စ္မွာေတာ့ က်ြန္ေတာ္ Fedora ရဲ့ Command တစ္ခ်ို့နဲ့ မိတ္ဆက္ေပးခ်င္ပါတယ္။ တစ္ျခား Linux Distro တစ္ခုခုကို သုံးဖူးမယ္ဆုိရင္ေတာ့ ဒီ command ေတြနဲ႕ သိပ္စိမ္းမွာ မဟုတ္ပါဘူး။ ဒါေပမဲ့ ဒီပို႕စ္မွာေတာ့ Fedora ကို စတင္အသုံးျပဳသူေတြ အတြက္ လိုအပ္တဲ့ Terminal နဲ႕ပတ္သက္တဲ့ command တစ္ခ်ို့ကို မိတ္ဆက္ေပးသြားမွာျဖစ္ပါတယ္။
1. su
su ကေတာ့ super user ရဲ့ အတုိေကာက္စာလုံးျဖစ္ပါတယ္။ ဥပမာ DNF command နဲ့ software ေတြ သြင္းတဲ့ အခါမ်ိုးမွာ သုံးပါတယ္။ Terminal မွာ super user နဲ႕ အသုံးျပဳေနတယ္ ဆိုရင္ # သေကၤတေလးနဲ႕ ျပေပးေနမွာျဖစ္ပါတယ္။ su ကေန ျပန္ထြက္ၿပီး login user အေနနဲ႕ ပဲ သုံးခ်င္ရင္ေတာ့ exit ကိုအသုံးျပဳနိုင္ပါတယ္။ $ ကေတာ့ login user အေနနဲ႕ အသုံးျပဳေနတာ ကို ေဖာ္ျပေပးတာပါ။
2. dnf
DNF ကေတာ့ fedora ရဲ့ software package manager တစ္ခုျဖစ္ပါတယ္။ dnf ကို အသုံးျပုမယ္ ဆိုရင္ အခ်ို့ေနရာေတြမွာ super user access ဖို့လိုပါတယ္။ dnf ကိုသုံးၿပီး software package ေတြကို ရွာတာ install ျပုလုပ္တာေတြကို လြယ္လင့္တကူျပဳလုပ္နိုင္ပါတယ္။
dnf search audacity
dnf install -y audacity
အေပါ္မွာသုံးထားတဲ့ -y ဆိုတာက ဆိုတာက package ကို install ျပဳလုပ္ရင္ ေမးမဲ့ confirm ကို တစ္ခါတည္း yes လို့ သတ္မွတ္ေပးၿပီး တန္းသြင္းလိုက္တာပါ။ dnf ေနာက္မွာ တြဲသုံးလို႕ရတဲ့ အျခား Option ေတြရွိပါေသးတယ္။ dnf repolist ဆိုရင္ေတာ့ မိမိစက္ရဲ႕ repolist ေတြကို ထုတ္ျပေပး နိုင္ပါတယ္။ အေသးစိတ္ကိုေတာ့ ေအာက္ကလင့္ မွာ သြားေရာက္ ဖတ္ရႈနိုင္ပါတယ္ခင္ဗ်။
3. history
မိမိအသုံးျပဳခဲ့တဲ့ command list ေတြကို ျပန္ၾကည့္ခ်င္ရင္ history နဲ႕ ျပန္ၾကည့္လို႕ရပါတယ္။ login user ေအာက္မွာ ရိုက္ထည့္ရင္ login user အေနနဲ႕ အသုံးျပဳခဲ့တဲ့ command ေတြကို ျပေပးမွာျဖစ္ၿပီး super user ေအာက္မွာ သုံးရင္ေတာ့ super user အသုံးျပဳခဲ့တဲ့ command history ကို ျပေပးမွာ ျဖစ္ပါတယ္။
4. clear
clear ကေတာ့ လက္ရွိ screen ကို clear လုပ္တာပါ။
5. cd
Terminal က လက္ရွိေရာက္ေနတဲ့ location ကေန တစ္ျခား location ထဲကို ၀င္ခ်င္ရင္ cd ကို အသုံးျပုနုိင္ပါတယ္။ Terminal ရဲ့ default location က /home/yourloginname ျဖစ္ပါတယ္။ သူ႕ေအာက္ထဲက Document ထဲကို ၀င္ခ်င္ရင္ေအာက္က လိုမ်ိုးအသုံးျပဳနိုင္ပါတယ္။
cd / ပဲရိုက္ထည့္ရင္ေတာ့ root folder ကို ေရာက္သြားမွာျဖစ္ပါတယ္။
6. pwd
pwd က print working directory ရဲ႕ အတိုေကာက္စာလုံး ျဖစ္ၿပီး Terminal မွာ မိမိလက္ရွိ ေရာက္ေနတဲ့ directory ကို ျပေပးနိုင္ပါတယ္။
7. dir, ls
dir နဲ့ ls ကေတာ့ သိပ္ၿပီး ကြဲျပားမွုမရွိပါဘူး။ လက္ရွိ working directory ေအာက္မွာ directory ေတြကို ၾကည့္ခ်င္တဲ့ အခါ မွာအသုံးျပဳနိုင္ပါတယ္။ directory list ကို column ပုံစံမ်ိုးနဲ႕ ျပေပးပါတယ္။
8. ll
ll ကလည္း dir နဲ့ ls လိုမ်ိုးပါပဲ။ သူကေတာ့ list အေနနဲ႕ ျပေပးၿပီး permission ေတြကိုပါ ေဖာ္ျပေပး နုိင္ပါတယ္။
9. cp
file ေတြကို copy ကူးခ်င္တဲ့အခါမွာ cp command ကို အသုံးျပဳနိုင္ပါတယ္။ cp -source -destination ပုံစံနဲ့ အသုံးျပုနိုင္ပါတယ္။
cp /home/yourloginname/Downloads/wordpress-4.6.1.zip /usr/share/nginx/html/
10. man
Fedora မွာ command ေတြရဲ့ manual ကို ဖတ္ရွုခ်င္ရင္ man လို့ရိုက္ထည့္ၿပီး အလြယ္တကူ ၾကည့္ရွုလို့ရပါတယ္။ Example ~
man cp
11. tar
Fedora မွာ tar.gz ဖိုင္ေတြကို tar command ကို အသုံးျပဳၿပီး အလြယ္တကူ ျဖည္နိုင္ပါတယ္။
- x ကေတာ့ extract ကိုဆိုလိုတာျဖစ္ၿပီး
- v ရဲ့ အဓိပၸာယ္က ျဖည္ေနတဲ့ progress ကိုျပခုိင္းတာျဖစ္ပါတယ္
- z ကေတာ့ က်ေနာ္တို့ က tar.gz ကို ျဖည္ခ်င္တာ ျဖစ္တဲ့အတြက္ gzip ဖိုင္အမ်ိုးအစား နဲ့ compress လုပ္ထားတာျဖစ္လို႕ gzip ကိုအသုံးျပုၿပီး ျဖည္ခိုင္းတာပါ။
- f ကေတာ့ archieve နာမည္ကိုျပန္ညြွန္းဆိုေပးတာပါ။
- C ကေတာ့ specific location မွာ ျဖည္ခ်င္တာျဖစ္တဲ့ အတြက္ destination ရဲ့ အေရွ့မွာ အသုံးျပဳထားတာ ျဖစ္ပါတယ္။
tar -xvzf [yourfilelocation] -C [destination]
12. unzip
zip ဖိုင္ေတြကို ျဖည္ခ်င္တဲ့ အခါမ်ိုးမွာလည္း tar လိုမ်ိုးပဲ unzip ကို အသုံးျပဳၿပီး ျဖည္ေပးနိုင္ပါတယ္။
အားလုံးပဲ အဆင္ေျပၾကပါေစဗ်ာ
Era
0 comments: