How to resize a VirtualBox disk image?

To resize a VirtualBox disk image (VDI), go to the directory where the .vdi\nfile is located, it's usually in ~/VirtualBox VMs, and run the following\ncommand:...