Info Star

Info Star

Share

Photos from Info Star's post 24/08/2019

Projectကရတယ့္ ပထမဦးဆုံးပိုက္ဆံေလးနဲ႔ လွဴလိုက္ၿပီ😃

26/05/2019

ဒီညအတြက္ေတာ့ မကုန္နိုင္ေသးေသာ ေနာက္ထပ္ command ေလးေတြအေႀကာင္းေပါ့ဗ်ာ …

👉“ps” command အသုံးျပဳပုံ???👈
“ps command" stands for "Process Status command" ပါ။ သူက active ျဖစ္ေနတဲ႔ process ေတြအားလုံးရဲ႕ အခ်က္အလက္ေတြကုိျပေပးပါတယ္။ဆိုပါေတာ့ဗ်ာ-man ps ဆုိ ps အေၾကာင္းရွင္းျပထားတာေတြကုိ
ေတြ႔ရပါလိမ့္မည္။
Syntax : ps [options]
က်ေတာ္တုိ႔ ယခု လက္ရွိ Shell မွာ run ေနတယ့္ Process ေတြ ကုိ ထုတ္ျပခ်င္တယ္ဆိုရင္
👇👇👇
[root@testsvr ~] # ps
PID TTY TIME CMD
5092 pts/0 00:00:00 bash
5119 pts/0 00:00:00 ps

System မွာ run ေနတယ့္ Process အားလုံးကုိ ၾကည့္ခ်င္ရင္ေတာ့
👇👇👇
[root@testsvr ~] # ps aux | more
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 125440 3896 ? Ss 10:13 0:03 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
root 2 0.0 0.0 0 0 ? S 10:13 0:00 [kthreadd]
root 3 0.1 0.0 0 0 ? S 10:13 0:05 [ksoftirqd/0]

က်ေတာ္တုိ႔ Running လုပ္ေနတယ့္ Process အားလုံးဆီက ကုိယ္လုိခ်င္တယ့္ Process ကုိပဲ ၾကည့္ခ်င္တယ္ဆိုရင္ေတာ့
👇👇👇
[root@testsvr ~] # ps -ef | grep mariadb
root 5205 5092 0 11:43 pts/0 00:00:00 grep --color=auto mariadb
[root@testsvr ~] # ps -ef | grep apache
root 5207 5092 0 11:46 pts/0 00:00:00 grep --color=auto apache

👉“cut” command အသုံးျပဳပုံ??👈
“cut” command ဆိုတဲ႔အတိုင္းပဲ က်ေတာ္တုိ႔ file ရဲ႕ Line တခုခ်င္းဆီမွ စာသား၊စာလုံး ေလးေတြမွာ ကုိယ္လုိခ်င္တယ့္အပုိင္းကိုပဲ cut လုပ္ပီးယူရမွာအသုံး၀င္ပါတယ္။
Syntax : cut [option]
က်ေတာ္တုိ႔ File ထဲမွာ ရွိတယ့္ (၂)လုိင္းေျမာက္က character ကုိ ထုတ္ခ်င္ရင္ေတာ့
👇👇👇
[root@testsvr ~] # cat hello.txt
My name is jack
Welcome to infostar
Technology at the speed of life
We will share to you our knowledge and experience
[root@testsvr ~] # cut -c2 hello.txt
y
e
e
e

က်ေတာ္တုိ႔ Character အေရအတြက္ (၁) ကေန (၈) အထိcut လုပ္ခ်င္ရင္ေတာ့ ဒီ format ေလးကိုသံုးေပါ့ဗ်ာ
👇👇👇
[root@testsvr ~] # cut -c1-8 hello.txt
My name
Welcome
Technolo
We will

ျပီးတဲ႔အခါက်ေတာ္တုိ႔ line တခုခ်င္းစီရဲ႕ field or row တခုခ်င္းစီကုိၾကည့္ခ်င္တယ္ဆုိပါက ေအာက္မွာျပထားတဲ႔ command ေတြကုိ သုံးနုိင္ပါတယ္ဗ်။
👇👇👇
[root@testsvr ~] # cat test.txt
ID Name Address Phno Email
1 Jack Hledan 09799 [email protected]
2 John Ahlone 09505 [email protected]
[root@testsvr ~] # cut -f 4 test.txt
Phno
09799
09505
[root@testsvr ~] # cut -f 2-4 test.txt
Name Address Phno
Jack Hledan 09799
John Ahlone 09505
“cut” command အေသးစိတ္ကိုပိုျပီးသိခ်င္ေသးတယ္ဆိုရင္ေတာ့ man cut ဆုိပီး ရွာၾကည့္နိုင္ပါတယ္။

👉“stat” command အသုံးျပဳပုံ??👈
“stat” command ကိုဘယ္ေနရာေတြမွာအဓိကသံုးလည္းဆိုရင္ file ဒါမွမဟုတ္ filesystem ရဲ႕ properties/status ေတြကုိၾကည့္ရာမွာအသုံးျပဳတာပါဗ်။
👇👇👇
[root@testsvr ~] # stat linux/
File: ‘linux/’
Size: 19 Blocks: 0 IO Block: 4096 directory
Device: fd00h/64768d Inode: 33916546 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-05-19 18:53:50.491000000 +0630
Modify: 2019-04-29 12:46:27.586000000 +0630
Change: 2019-04-29 12:46:27.586000000 +0630
Birth: -
“stat” command ကေတာ့ဒီေလာက္ပဲေပါ့ဗ်ာ။။

👉“diff” command အသုံးျပဳပုံ??👈
“diff” လို႔ေခၚတဲ႔(difference) command ကေတာ့ files ေတြကုိ compare လုပ္ရမွာ အသုံး၀င္ျပီး မတူညီတယ့္ Line တခုခ်င္းစီကုိ ထုတ္ျပေပးပါတယ္။
👇👇👇
Syntax : diff [file1] [file2]
[root@testsvr ~] # diff hello.txt hello1.txt
1,2c1,2
< My name is jack
< Welcome to infostar
---
> My name is smith
> Welcome to linux

https://www.computerhope.com/unix/udiff.htm
“diff” command အေသးစိတ္ကုိေတာ့ အေပၚ Link ကေန ထပ္ျပီးေလ့လာနုိင္ပါတယ္ခင္ဗ်။

👉“at” command အသုံးျပဳပုံ??👈
“at” command သည္ သီးျခား date / time မွာက်ေတာ္တုိ႔ run ခ်င္တဲ့ job တစ္ခုကုိ တစ္ႀကိမ္သာ schedule ဆဲြပီး ဘယ္ေန႔၊ ဘယ္အခ်ိန္မွာ အလုပ္လုပ္မယ္ဆုိတာ သတ္မွတ္ရာမွာ အသုံး၀င္သည္။
က်ေတာ္တုိ႔ System မွာ “at” command မရွိရင္ေတာ့ # yum install -y at ဆုိပီးသြင္းလုိက္နိုင္ပါတယ္ခင္ဗ်ာ။
ဥပမာ…က်ေတာ္တု႔ိ System ရဲ႕ health status ကုိ မနက္ဖန္ ၁၁ နာရီမွာ runခ်င္တယ္ဆုိပါက
👇👇👇
[root@testsvr ~] # at -f serverstatus.sh 11:00 am tomorrow
https://www.computerhope.com/unix/uat.htm

👉“watch” command အသုံးျပဳပုံ??👈
“watch” command ကိုက်ေတာ္တုိ႔ဘာအတြက္သံုးလည္းဆိုေတာ့ သူက System မွာရွိတယ့္ Program ေတြကုိ ပုံမွန္ ေဆာင္ရြက္စီမံေပးပါတယ္။ က်ေတာ္တုိ႔ watch command ကုိ run လုိက္ပီးဆုိရင္ဒီ command က fullscreen နဲ႔ျပပီး default အေနျဖင့္က်ေတာ္တုိ႔ program ကုိ ၂စကၠန္႔တုိင္း run ေပးပါတယ္။ man watch ဆုိပီးအေသးစိတ္ၾကည့္ရႈ႕နုိင္ပါေသးတယ္။
👇👇👇
[root@testsvr ~] # watch date
Every 2.0s: date Sat May 25 22:58:02 2019
Sat May 25 22:58:02 +0630 2019

😎ဒီညအတြက္ေတာ့ ဒီေလာက္ပဲေပါ့ဗ်ာ 😎
😍အမွားပါက ေ၀ဖန္ေထာက္ျပအၾကံျပဳေဆြးေႏြးေပးပါခင္ဗ်😍
🙏🙏သင္ဆရာ ျမင္ဆရာ ၾကားဆရာအားလုံးကုိေလးစားလ်က္🙏🙏
Freelance Engineer @ Info Star

25/05/2019

က်ြန္ေတာ္တို႔ Info Star ရဲ႕ပထမဆံုး video tutorial ေလးပါ။ 😎😎😎
Software RAID အေၾကာင္းေလး Discuss လုပ္ေပးထားပါတယ္။
Centos 7 ေပၚမွာ mdadm လို႔ေခၚတဲ့ software ေလးသံုးျပီးေတာ့ ဘယ္လို configure လုပ္လဲဆို တဲ့ အေသးစိတ္ကို video ေလးမွာ ၾကည့္လို႔ရပါတယ္။😉

Introduction to raid -> https://www.facebook.com/info.star.mm/posts/282574899339672?__tn__=K-R

😎ဒီေန႔ေတာ့ ဒီေလာက္ပဲဗ်ာ
ေနာက္ေန႔ မွ ဆက္ ေဆြးေႏြးၾကတာေပါ့ဗ်ာ😉
😍😍အမွားပါက ေ၀ဖန္ေထာက္ျပအၾကံျပဳေဆြးေႏြးေပးပါခင္ဗ်😍😍
🙏🙏သင္ဆရာ ျမင္ဆရာ ၾကားဆရာအားလုံးကုိေလးစားလ်က္🙏🙏
Freelance Engineer @ Info Star

Want your business to be the top-listed Computer & Electronics Service in Yangon?
Click here to claim your Sponsored Listing.

Website

Address


Hlaing River Street(2), Hlaing Township
Yangon

Opening Hours

Monday 09:00 - 18:00
Tuesday 09:00 - 17:00
Wednesday 09:00 - 17:00
Thursday 09:00 - 18:00
Friday 09:00 - 18:00
Saturday 09:00 - 13:00