How to check hardware info in UBUNTU

1, By terminal
sudo lshw | less 

2, By program
intall
sudo apt-get install hardinfo

run hardinfo
install