Category: Linux & WSL
Linux & Windows Subsystem for Linux (WSL) Blog which includes useful guides and troubleshooting tips, written by an experienced Microsoft SQL Server DBA, Peter Whyte.
-
WSL: The Complete Guide for Windows Admins
Every WSL guide on this site in one place: install, file access, managing distributions, restarting, and the commands worth memorising.
-
How to Move a WSL Distro to Another Drive
WSL installs onto C: by default and the virtual disk only grows. Moving a distribution to another drive used to be a three-step dance. It is now one command.
-
How to Back Up and Restore a WSL Distro
A WSL distribution is one command away from being a single tar file you can copy, archive, or restore onto another machine.
-
How to Limit WSL 2 Memory and CPU Usage
WSL 2 will happily take a large share of your RAM and not give it back quickly. A .wslconfig file in your user folder puts a ceiling on it.
-
How to Change the Default User in WSL
WSL logs you in as whichever account you created first. One command changes that, and it no longer needs you to edit a config file inside the distro.
-
How to Install PowerShell on Ubuntu 20.04
This guide will walk you through installing PowerShell on Ubuntu 20.04. I’m doing this on Windows Subsystem for Linux (WSL), and have not encountered any…
-
How to Restart Windows Subsystem for Linux (WSL)
If your Windows Subsystem for Linux (WSL) instance encounters errors or you’ve updated the .wslconfig file (e.g., to modify memory limits), restarting your WSL…
-
How to Upgrade WSL from Version 1 to Version 2
This guide explains how to upgrade your Windows Subsystem for Linux (WSL) distribution from Version 1 (WSL 1) to Version 2 (WSL 2).
-
How to Downgrade from WSL Version 2 to WSL Version 1
In certain development or system administration scenarios, you may need to downgrade your Windows Subsystem for Linux (WSL) distribution from WSL version 2…
Three guides collect the posts by the job you are doing rather than by date.
PowerShellFiles, CSVs, the firewall, scheduled tasks WSLInstalling it, distros, files across both worlds Windows AdministrationServers, domains, DNS, the tools worth havingThis site started as a SQL Server blog in 2017 and the archive is still here. The new SQL Server writing, and all the scripts, moved to a site of their own.
sqldba.blogScripts, error library, wait types, SSMS- Linux & WSL (28)
- Microsoft SQL Server (50)
- Other (13)
- PowerShell (53)
- Windows Server Admin (38)