How to Set Up Linux on Your PC Using a Virtual Machine
If you are using Windows on your PC, it may be easier to code or program by running Linux or another Unix-based operating system alongside Windows. There are a few ways to do this including dual-booting, containerization, or using a virtual machine.
This guide will focus on how to set up Linux using a virtual machine. A virtual machine uses your current computer and software to emulate a second computer, all within the same physical device. When you run Linux (the guest OS) alongside, say, Windows (the host OS) you can create two operating systems in one device. The virtual machine functions separately from its own window, although it is possible to switch back and forth between the guest and host OS, such as for transferring files or taking snapshots.
There are many different applications you can download and use to run virtual machines, however one that is recommended is Oracle VirtualBox.