j
k
j a
j l
... grep -q -w hypervisor /proc/cpuinfo grep -q -w hypervisor /proc/cpuinfo && return 1 Are you sure? return 1 means false for shell.
grep -q -w hypervisor /proc/cpuinfo grep -q -w hypervisor /proc/cpuinfo && return 1
grep -q -w hypervisor /proc/cpuinfo
grep -q -w hypervisor /proc/cpuinfo && return 1
Are you sure? return 1 means false for shell.
If grep success, return 1 means it's a physical machine, return 0 means vm
Thanks, Zhangyu
... return 0 fi } -- 2.23.0
return 0 fi } -- 2.23.0
return 0
}
-- 2.23.0
Back to the thread
Back to the list