PrinceOfPersia
زيزوومي VIP
- إنضم
- 19 أبريل 2008
- المشاركات
- 4,718
- مستوى التفاعل
- 7,773
- النقاط
- 1,220
- الإقامة
- الكويت
- الموقع الالكتروني
- forum.zyzoom.net
غير متصل
من فضلك قم بتحديث الصفحة لمشاهدة المحتوى المخفي

السلام عليكم ورحمة الله وبركاته
هذه بعض اﻷوامر للتعرف على قطع جهاز الكمبيوتر في نظام لينكس بكافة توزيعاته
وأتمنى أن تجدوا الفائدة فيها
ملاحظة هامة: بعض اﻷوامر تستدعي صلاحية المدير أو المسؤول أو root
لذا يجيب تنفيذها باستخدام su
وإذا لم يكن اﻷمر موجود عندك فيجب تنزيله من المستودع على حسب نظامك
أولاً أمر lscpu
سيعطيك معلومات عن قطع الجهاز مثل هذا
PHP:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Model name: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Stepping: 3
CPU MHz: 979.781
CPU max MHz: 3400.0000
CPU min MHz: 800.0000
BogoMIPS: 4788.99
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-7
ثانياً أمر Lshw
أمر آخر رائع ولكن النتيجة صفحات من المعلومات لذا يجب استخدام الخيارات مع اﻷمر لنبحث عن شئ معين
مثال:
كود:
lshw -short
volume
system
bus
processor
memory
bridge
multimedia
display
input
generic
communication
network
storage
disk
كود:
H/W path Device Class Description
=======================================================
system 10123 (LENOVO_MT_1012)
/0 bus SHARKBAY
/0/0 memory 64KiB BIOS
/0/3c processor Core i7 (Fill By OEM)
/0/3c/3d memory 1MiB L2 cache
/0/3c/3e memory 256KiB L1 cache
/0/3c/3f memory 6MiB L3 cache
/0/40 memory 8GiB System Memory
/0/40/0 memory 8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/40/1 memory DIMM [empty]
/0/100 bridge Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
/0/100/1 bridge Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
/0/100/1/0 display GK208M [GeForce GT 740M]
/0/100/2 display 4th Gen Core Processor Integrated Graphics Controller
/0/100/3 multimedia Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
/0/100/14 bus 8 Series/C220 Series Chipset Family USB xHCI
/0/100/14/0 usb4 bus xHCI Host Controller
/0/100/14/1 usb3 bus xHCI Host Controller
/0/100/14/1/2 input USB Receiver
/0/100/14/1/7 multimedia Lenovo USB2.0 UVC Camera
/0/100/14/1/9 generic BCM20702A0
/0/100/16 communication 8 Series/C220 Series Chipset Family MEI Controller #1
/0/100/1a bus 8 Series/C220 Series Chipset Family USB EHCI #2
/0/100/1a/1 usb1 bus EHCI Host Controller
/0/100/1a/1/1 bus USB hub
/0/100/1a/1/1/1 input CoolTouch(TM) System
/0/100/1a/1/1/4 wlan0 network 802.11n WLAN Adapter
/0/100/1b multimedia 8 Series/C220 Series Chipset High Definition Audio Controller
/0/100/1c bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #1
/0/100/1c.2 bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #3
/0/100/1c.2/0 multimedia SAA7231
/0/100/1c.3 bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #4
/0/100/1c.3/0 eth0 network RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1c.4 bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #5
/0/100/1c.4/0 generic RTS5229 PCI Express Card Reader
/0/100/1d bus 8 Series/C220 Series Chipset Family USB EHCI #1
/0/100/1d/1 usb2 bus EHCI Host Controller
/0/100/1d/1/1 bus USB hub
/0/100/1f bridge HM86 Express LPC Controller
/0/100/1f.2 storage 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
/0/100/1f.3 bus 8 Series/C220 Series Chipset Family SMBus Controller
/0/1 scsi2 storage
/0/1/0.0.0 /dev/cdrom disk BDDVDRW CA40N
/0/2 scsi5 storage
/0/2/0.0.0 /dev/sda disk 1TB ST1000LM014-1EJ1
/0/2/0.0.0/1 /dev/sda1 volume 2054MiB Linux swap volume
/0/2/0.0.0/2 /dev/sda2 volume 40GiB Linux filesystem partition
/0/2/0.0.0/3 volume 889GiB Linux filesystem partition
/1 power To Be Filled By O.E.M.
ولمعرفة قطع الذاكرة فقط Memory
نكتب اﻷمر مع إضافة كلاس للميموري
كود:
sudo lshw -short -class memory
كود:
H/W path Device Class Description
=======================================================
/0/0 memory 64KiB BIOS
/0/3c/3d memory 1MiB L2 cache
/0/3c/3e memory 256KiB L1 cache
/0/3c/3f memory 6MiB L3 cache
/0/40 memory 8GiB System Memory
/0/40/0 memory 8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/40/1 memory DIMM [empty]
المعالج
نكتب اﻷمر
كود:
sudo lshw -class processor
كود:
H/W path Device Class Description
=======================================================
/0/3c processor Core i7 (Fill By OEM)
قطع الهارد دسك وال سيدي
نكتب اﻷمر
كود:
sudo lshw -short -class disk
كود:
H/W path Device Class Description
=======================================================
/0/1/0.0.0 /dev/cdrom disk BDDVDRW CA40N
/0/2/0.0.0 /dev/sda disk 1TB ST1000LM014-1EJ1
كروت الشبكة
نكتب اﻷمر
كود:
sudo lshw -class network
كود:
H/W path Device Class Description
=======================================================
/0/100/1a/1/1/4 wlan0 network 802.11n WLAN Adapter
/0/100/1c.3/0 eth0 network RTL8111/8168/8411 PCI Express Gig
ولمعرفة المزيد من خيارات اﻷمر نكتب
كود:
man lshw
وننتقل لأمر آخر

التعديل الأخير بواسطة المشرف: