Find hardware information in linux using several commands
1==> lscpu (cpu information ကိုသိချင်ရင်စစ်တာ)
usage → lscpu
2==> lshw (computer တစ်ခုလုံးမှာရှိတဲ့ hardware တစ်ခုချင်းစီကို အသေးစိတ် အကုန်လုံးကို ကြည့်လို့ရမှာပါ package မရှိရင်တော့ install လုပ်ရမှာပါ ဒီ command ကို သုံးမယ် ဆိုရင် sudo userဖြစ်ဖို့တော့လိုပါတယ်)
usage → sudo lshw
3==> hwinfo (hardware information ကို အပေါ်ယံကြောလေးမြင်ရမှာပါ package မရှိရင် install လုပ်လို့ရပါတယ်)
usage → hwinfo –short
4==> lspci (သူကတော့ pci list ကိုပြမှာပါ ကိုသိချင်တဲ့ pci ကို grep နဲ့လည်း ဆွဲထုတ်ကြည့်လို့ရပါသေးတယ်)
e.g graphic card ကို ကြည့်ချင်တယ်ဆိုပါတော့်
usage → lspci | grep “VGA” -A 12 စသဖြင့် ကြည့်လို့ရပါတယ်
5==> lsscsi (သူကတော့ hdd တွေ cd drive တွေလိုမျိုး scsi/sata devices ကို ဖော်ပြပေးပါတယ်)
usage → lsscsi
6 ==> lsusb ( ဒီ command လေးကတော့ usb နဲ့ bus တွေကို တွေ့ရမှာပါ usb port တွေ webcam , sd card တွေစသဖြင့်ပေါ့)
usage → lsusb
7 ==> lsblk ( block device တွေကြည့်တာ /boot /root /home စသဖြင့်ပေါ့)
usage → lsblk
8 ==> df (system file တွေရဲ့ space ဘယ်လောက် ရှိနေပြီလဲဆိုတာသိနိုင်ပါတယ်)
usage → df -H
9 ==> fdisk (ဒီ command လေးကတော့ hdd တွေကို partition ပိုင်းဖို့ရာ အရမ်းအသုံးဝင်တဲ့ command ပဲဖြစ်ပါတယ် partition တွေရဲ့ information ကို ပါ သိရှိနိုင်ပါတယ်)
usage → fdisk /dev/sdb (e.g ပါနော်)
usage → fdisk -l ( partition တွေရဲ့ information ကို ကြည့်ဖို့အတွက်ပါ)
10 ==> mount (file system တွေကို mount လုပ်တဲ့ နေရမှာသုံးသလို mount လုပ်ထားတဲ့ file system တွေကို ကြည့်တဲ့နေရာမှာလည်းသုံးပါတယ်)
usage → mount | column -t
usage → mount | column -t | grep ext ( grep ကိုသုံးပြီးတော့လည်း ကိုသိချင် တဲ့ file fomat နဲ့ file system တွေကိုလည်း ဆွဲထုတ် ကြည့်လို့ရပါတယ်)
11 ==> free ( RAM ဘယ်လောက်ရှိလည်း ကြည့်ကတာပေါ့ swap volume ပါပါတယ်နော်)
usage → free -m
12 ==> hdparm (hdd လိုမျိုး sata device တွေ ရဲ့ information ကိုသိချင်တဲ့အခါ သုံးနိုင်ပါတယ်)
usage → sudo hdparm -i /dev/sda
========= Linux အခြေခံ လုံးဝ လုံးဝ မလိုပဲ Linux system administration ကို လေ့လာလိုသူများ အတွက် ========
Linux basic to Linux system administration တန်းခွဲ အသစ် များ စုံစမ်း ရန်။
Class details : www.bnntech.wordpress.com


