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?
- Open the terminal application on Linux
- Make sure run commands as the root user
- Type the
sudo dmidecode -s system-version
to display model name. - Another option is to type:
sudo dmidecode -s system-product-name
- 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: