Linux System Info

How to get System Information for Linux from Command Line?

How to get Kernel Version and System Architecture for Linux from Command Line?
uname -a

[root@shlpaysil ~]# uname -a
Linux shlpaysil 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux

How to get Name and Version of Distribution for Linux from Command Line?
head -nl /etc/issue

[root@shlpaysil ~]# head -nl /etc/issue
Red Hat Enterprise Linux Server release 5 (Tikanga)

Display All Registered Partitions on the System
cat /proc/partitions

[root@shlpaysil ~]# cat /proc/partitions
major minor #blocks name
8 0 71687325 sda
8 1 32098 sda1
8 2 409657 sda2

Hard Drive Information:
fdisk -l

[root@shlpaysil ~]# fdisk -l
Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Memory Information:
grep MemTotal /proc/meminfo

[root@shlpaysil ~]# grep MemTotal /proc/meminfo
MemTotal: 1035156 kB

Display CPU Information:
grep “model name” /proc/cpuinfo

[root@shlpaysil ~]#grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(TM) CPU 3.00GHz
model name : Intel(R) Xeon(TM) CPU 3.00GHz

Get System Manufacturer Name:
dmidecode -s system-manufacturer

[root@shlpaysil ~]# dmidecode -s system-manufacturer
Dell Computer Corporation

Display System Product Name:
dmidecode -s system-product-name

[root@shlpaysil ~]# dmidecode -s system-product-name
PowerEdge 1850

Display BIOS Release Date:
dmidecode -s bios-release-date

[root@shlpaysil ~]# dmidecode -s bios-release-date

Get CD/DVD RW Info:
cat /proc/sys/dev/cdrom/info

[root@shlpaysil ~]# cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

Published by

Rahinur Rahaman

Expert in Oracle Database 10g and 11g. Deep knowledge on SQL, PL/SQL and Java programming. Working at Square InformatiX Limited as Oracle Database Administrator.

One thought on “Linux System Info”

  1. Disk Space Usage:
    df -h

    [root@stlsvr2 ~]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda6 136G 42G 87G 33% /
    /dev/sda5 677M 17M 625M 3% /tmp
    /dev/sda2 677M 23M 619M 4% /boot
    tmpfs 2.0G 0 2.0G 0% /dev/shm

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>