How do I know my Lenovo laptop model on Ubuntu Linux?

I want to know my Lenovo laptop model when using Ubuntu Linux desktop. Is there command that I type to get Lenovo laptop model using Ubuntu Linux terminal?

  1. Open the terminal application on Linux
  2. Make sure run commands as the root user
  3. Type the sudo dmidecode -s system-version to display model name.
  4. Another option is to type: sudo dmidecode -s system-product-name
  5. That is all

Finding Lenovo laptop model on Ubuntu Linux

Use the bash for loop as follows to display product model including BIOS version.

for d in system-manufacturer system-product-name system-version bios-release-date bios-version
do    
      echo "${d^} : " $(sudo dmidecode -s $d); 
done

Do check the following tutorials from my blog for more: