BMS-HOSxP Community
HOSxP => Linux => ข้อความที่เริ่มโดย: Svl2Nuk3 ที่ พฤษภาคม 02, 2011, 13:06:38 PM
-
ดูสเปคฮาร์ดแวร์ ที่ติดตั้งลีนุกซ์อย่างไร? เป็นคำถามที่โดนถามบ่อย ลีนุกซ์มีหลายคำสั่งที่ช่วยในการดูสเปคฮาร์ดแวร์ ที่โดดเด่นที่สุดก็น่าจะเป็น lshw ซึ่งได้ข้อมูลมาเพียบ
root@sothorn2:~# lshw -short
H/W path Device Class Description
===================================================
system System Product Name
/0 bus M2N-MX SE Plus
/0/0 memory 64KiB BIOS
/0/3 processor AMD Athlon(tm) 64 X2 Dual Core Processor
/0/3/5 memory 256KiB L1 cache
/0/3/6 memory 1MiB L2 cache
/0/3/7 memory L3 cache
/0/2b memory 3GiB System Memory
/0/2b/0 memory 2GiB DIMM Synchronous 800 MHz (1.2 ns)
/0/2b/1 memory 1GiB DIMM Synchronous 800 MHz (1.2 ns)
อย่างไรก็แล้วแต่การแสดงผลก็ยังเป็นแบบ Text ถ้าจะดูให้หนำใจแบบกราฟิกก็ต้อง lshw-gtk
บน Ubuntu ติดตั้งได้โดย apt-get install lshw-gtk
บน CentOS ติดตั้งโดย yum install lshw-gtk
http://opensource.cc.psu.ac.th/%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87_lshw_%E0%B8%9A%E0%B8%99_CentOS
http://linux.sothorn.org/content/%E0%B8%94%E0%B8%B9%E0%B8%AA%E0%B9%80%E0%B8%9B%E0%B8%84%E0%B8%AE%E0%B8%B2%E0%B8%A3%E0%B9%8C%E0%B8%94%E0%B9%81%E0%B8%A7%E0%B8%A3%E0%B9%8C%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%A5%E0%B8%B5%E0%B8%99%E0%B8%B8%E0%B8%81%E0%B8%8B%E0%B9%8C%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%84%E0%B8%A3
-
:) :) เจ๋งเลย ;D ;D
-
less /etc/sysconfig/hwconf : to get installed hardware information.
less /proc/cpuinfo : to get installed CPUs specification.
less /var/log/dmesg or dmesg :to get the Linux boot up information.
less /proc/interrupts :to list the IRQ used by system devices.
less /proc/ioports :to list I/O ports used by system.
less /proc/dma :to list DMA channels and device used by system.
less /proc/version or uname -a or less /etc/redhat-release or lsb_release -a :to show the Linux version.
kudzu -p to show the probe information about hardware detected
/usr/bin/lsdev to list devices and information on system hardware.
/sbin/lspci to list detected PCI devices.
/sbin/lsmod to list loadable modules.
/sbin/lsraid to list raid device.
/sbin/lsusb to list USB device.
/sbin/usbmodules to list kernel driver modules available for USB devices.