In this chapter, we are going to learn to manage our Linux distributions on WSL, which can be anything from setting a default distribution, backing up configurations and settings using the export feature, or restoring the distro with the import feature. More than that, we will also look into ways to unregister, uninstall, and reinstall a Linux distribution and, toward the end of this chapter, create a custom Linux distribution for WSL.
Let’s start with getting a list of the Linux distributions on your system.