Tips : 5 Perintah Bash Shell Troubleshooting Sistem

Barangkali ketika anda akan melakukan troubleshooting sistem linux yang belum anda ketahui. Ada beberapa perintah sederhana di shell yang bisa anda gunakan untuk mengetahui sistem yang akan anda troubleshoot. 1.Uname perintah Uname akan memberi tahu anda nama kernal yang anda gunakan, nama komputer, rilis kernel yang digunakan, tanggal kernel di buat, tipe prosesor dan platform hardware yang digunakan. # uname -a Linux shuttle.linuxtoys.com 2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST 2003 1686 i686 i386 GNU/Linux 2.df -h Untuk mengetahui space yang tersedia pada hardisk dan juga berdasarkan partisi yang ter mount dengan perintah df -h. # df -h Filesystem Size Used Avail Use% Mounted on /dev/hda6 59G 52G 4.1G 93% / /dev/hda1 99M 6.3M 88M 7% /boot /dev/hda2 9.7G 7.4G 1.8G 81% /mnt/backup /dev/hda5 4.9G 1.2G 3.5G 25% /mnt/isos none 3.fdisk -l Untuk bisa melihat semua partisi yang terdapat di hardisk dengan menggunakan perintah fdisk -l # fdisk -l Disk /dev/hda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 1288 10241437+ 83 Linux /dev/hda3 1289 1364 610470 82 Linux swap /dev/hda4 1365 9729 67191862+ f Win95 Ext'd (LBA) /dev/hda5 1365 2001 5116671 83 7Linux /dev/hda6 2002 9729 62075128+ 83 Linux 4.lspci Untuk mengecek hardware anda dengan cepat, jalankan saja perintah lspci. Ini akan memperlihatkan hardware PCI yang terinstall di pc yang anda gunakan. # lspci 00:00.0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset Host Bridge (rev 03) 00:01.0 PCI bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset AGP Bridge (rev 03) 00:ld.0 USB Controller: Intel Corp, 82801DB USB (Hub #1) (rev 02) 00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 02) 00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 02) 00:1d.7 USB Controller: Intel Corp. 82801DB USB2 (rev 02) 00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 82) 00:1f.0 ISA bridge: Intel Corp. 82801DB LPC Interface Controller (rev 02) 00:1f.1 IDE interface: Intel Corp. 82801DB Ultra ATA Storage Controller (rev 02) 00:1f.3 SMBus: Intel Corp. 82801DB/DBM SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio Controller (rev 02) 01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1) 02:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 02:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46) 02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11) 5.dmesg Sebagai alternatif selain menggunakan lspci, anda juga bisa menggunakan perintah dmesg. Dmesg juga menampilkan informasi dengan hardware dan juga driver yang terdetek dan juga yang terakses. # dmesg | less Linux version 2.4.22-1.2115.nptl (bhcompile@daffy.perf.redhat.com) (gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)) #1 Wed Oct 29 15:42:51 EST 2003 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) . . . PCI: PCI BIOS revision 2.10 entry at Oxfb5d0, last bus=2 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Ignoring BARO-3 of IDE controller 00:1f.1 Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge PCI: Using IRQ router PIIX/ICH [8086/24c0] at 00:1f.0 PCI: Found IRO 11 for device 00:1f.1 PCI: Sharing IRO 11 with 00:1d.2 PCI: Sharing IRO 11 with 02:06.0 . . .
A

Tulis oleh

alfach

Komentar

Belum ada komentar. Jadilah yang pertama berkomentar!

Tulis Komentar

Email tidak akan dipublikasikan.