Categories
Linux

How to check in Linux if we have a virtual or a physical machine?

If you want to check if the machine you are working on is virtual or physical, issue the command:

# hostnamectl

or type:

# dmidecode -s system-Manufacturer