HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

virt-what — Shell script that detects if you are running in a virtual machine. Outputs a specific code for a vir

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shelldetectscommandclithatscriptyouvirt-what
linux

Problem

How to use the virt-what command: Shell script that detects if you are running in a virtual machine. Outputs a specific code for a virtual machine if detected. More information: <https://manned.org/virt-what>.

Solution

virt-what — Shell script that detects if you are running in a virtual machine. Outputs a specific code for a virtual machine if detected. More information: <https://manned.org/virt-what>.

Detect if you are running in a virtual machine:
virt-what


Log output of virt-what into a file:
virt-what > {{path/to/file}}


Display version:
virt-what --version

Code Snippets

Detect if you are running in a virtual machine

virt-what

Log output of `virt-what` into a file

virt-what > {{path/to/file}}

Display version

virt-what --version

Context

tldr-pages: linux/virt-what

Revisions (0)

No revisions yet.