How to Let Linux Scripts Detect They’re Running in Virtual Machines
Virtual machines try really hard to convince their operating systems that they’re running on physical hardware. So can you tell from the Linux command line if the computer is physical or virtual?