昔日

判断当前主机是物理机还是虚拟机

走过岁月......:

windows系统


cmd中执行:



Systeminfo | findstr /i "vmware"




或是powershell中执行命令为:



get-wmiobject win32_computersystem | fl model






Linux系统


bash里输入命令为:



dmidecode -s system-product-name





评论

热度(4)