How to know computer hardware and system information in Linux

System Information in Linux

As a Linux System Administrator you may want to know your computer hardware and system information. in Linux .There are many useful command in Linux which you can utilize to find out the information about your computer systems and hardware. Below are some commands which you can learn and use whenever you want. Lets see how to use these commands.

1. Know your system information by uname

You can know your Linux system information by "uname" command. You can also use Options with uname to print more related information about your computer system.

Options you can use with uname

-s = To know Kernel name
-n = To know host name
-o = To know Operating System
-v = To know Kernel version
-a = To know all the above information with this option  

[root@techsakh ~]# uname -a
Linux techsakh 3.10.0-229.14.1.el7.x86_64 #1 SMP Tue Sep 15 15:05:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

 

2. Know about the USB buses connected to your system

Use the option  -v with lsusb command to know about USB connected to your system. See the example given below

[root@techsakh ~]# lsusb -v
System information in Linux
System information in Linux

  Use option -t to see USB devices  hierarchy as a tree.

[root@techsakh ~]# lsusb -t
System information in Linux, System information in Linux, System information in Linux
System information in Linux

 

3. To know Hardware configuration of your system

Use  lshw command to know about the hardware configuration of your system.

[root@techsakh ~]# lshw
System information in Linux, System information in Linux, System information in Linux
System information in Linux

  Use option -short to see the hardware information in a more convenient way.

[root@techsakh ~]# lshw -short
System information in Linux, System information in Linux, System information in Linux
System information in Linux

  You can also print the lshw output in an html format. Use the below command to print the output in lshw.html file.

[root@techsakh ~]# lshw -html > lshw.html
System information in Linux, System information in Linux, System information in Linux
System information in Linux

 

4. To list all available devices connected to your system

Use the command  lsblk to list all available devices connected to your system.

[root@techsakh ~]# lsblk
System information in Linux, System information in Linux, System information in Linux
System information in Linux

 

5. To know the information related to your CPU

lscpu lists all the information about your CPU

[root@techsakh ~]# lscpu
System information in Linux
System information in Linux

 

6. To list Linux file system and partition

The command  fdisk -l  list all the information related to the file system ad its partitions.

[root@techsakh ~]# fdisk -l
System information in Linux
System information in Linux

 

7. To know information about BIOS and hardware components

dmidecode is a command to gather information about the BIOS and your computer hardware components. You can use number of options with dmidecode to print more productive output. Options you can use Options ========= bios system baseboard chassis processor memory cache connector slot

[root@techsakh ~]# dmidecode -t processor
Screenshot from 2015-12-20 01:36:17
System information in Linux

 

8. To list SCSI disk connected to your system

lsscsi command is used to list all SCSI connected to your system.

[root@techsakh ~]# lsscsi
Screenshot from 2015-12-20 01:51:55
System information in Linux

 

9. To probe the hardware present inside your system

Use the hwinfo command to probe the hardware present inside your system. This command will present you with a long list of hardware information. See the example given below.

[root@techsakh ~]# hwinfo
Screenshot from 2015-12-20 02:03:35
System information in Linux

The above commands are very useful for Linux administrator as well as for the simple users to gather informations related to system hardware and file systems. In many cases you can use these informations for troubleshoot task.

Also see tutorial on Sed unix command

Image credit:Nao Iizuka of flickr

Download Our Free eBook now

Linux and UNIX Shell scripting ebook

Be the first to comment

Leave a Reply

Your email address will not be published.


*


shares