Monday, August 2, 2010

Find out Hardware configuration of Linux / Ubuntu based system

In Windows OS based system it's very easy to find out the system configuration by following commands:
(1) Run -> msinfo32
(2) Run ->cmd -> systeminfo
( You can even redirect the output from monitor to printer or a file by suffix the above command with > file_name.txt )

In RHEL or Ubuntu it's similarly easy too:

(I) Using /proc - there's important info located in this directory! cd /proc, then ls; use cat to read the files in /proc such as cpuinfo, devices, filesystems, meminfo, partitions, swaps, uptime, version, etc.; also, you can cd into the subdirectories in /proc, for example, cd driver
(1)# cat/proc/cpuinfo >cpu.txt
(2)# cat/proc/meminfo >mem.txt
(3)# cat/proc/swaps >swap.txt
(4)# cat/proc/version >ver.txt

(II) Using dmidecode (for memery)
# dmidecode | less
or
# dmidecode >dmi.txt
or
# dmidecode -t memory
or
# dmidecode --type 17


No comments:

Post a Comment