Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques

5 (1 reviews total)
By Stuart Leeks
    What do you get with a Packt Subscription?

  • Instant access to this title and 7,500+ eBooks & Videos
  • Constantly updated with 100+ new titles each month
  • Breadth and depth in over 1,000+ technologies
  1. Chapter 1: Introduction to the Windows Subsystem for Linux

About this book

Windows Subsystem for Linux (WSL) allows you to run native Linux tools alongside traditional Windows applications. Whether you’re developing applications across multiple operating systems or looking to add more tools to your Windows environment, WSL offers endless possibilities.

You’ll start by understanding what WSL is and learn how to install and configure WSL along with different Linux distros. Next, you'll learn techniques that allow you to work across both Windows and Linux environments. You’ll discover how to install and customize the new Windows Terminal. We'll also show you how to work with code in WSL using Visual Studio Code (VS Code). In addition to this, you’ll explore how to work with containers with Docker and Kubernetes, and how to containerize a development environment using VS Code.

While Microsoft has announced support for GPU and GUI applications in an upcoming release of WSL, at the time of writing these features are either not available or only in early preview releases. This book focuses on the stable, released features of WSL and giving you a solid understanding of the amazing techniques that you can use with WSL today.

By the end of this book, you’ll be able to configure WSL and Windows Terminal to suit your preferences, and productively use Visual Studio Code for developing applications with WSL.

Publication date:
October 2020


Section 1: Introduction, Installation, and Configuration

By the end of this part, you will have an overview of what the Windows Subsystem for Linux is and how it differs from a traditional virtual machine. You will be able to install the Windows Subsystem for Linux and configure it to suit your needs. You will also be able to install the new Windows Terminal.

This section consists of the following chapters:

Chapter 1, Introduction to the Windows Subsystem for Linux

Chapter 2, Installing and Configuring the Windows Subsystem for Linux

Chapter 3, Getting Started with Windows Terminal

About the Author

  • Stuart Leeks

    The author Stuart Leeks is a Principal Software Development Engineer at Microsoft. In his current role, Stuart works with various companies to help them be successful adopting cloud technologies and has a particular interest in technologies such as Kubernetes and Serverless. Stuart is experienced developer who enjoys contributing to (and creating) open source projects, with a particular interest in web and cloud technologies like Kubernetes and Serverless. WSL is an area of personal interest.

    Browse publications by this author

Latest Reviews

(1 reviews total)
The book is clearly written and focuses on real use cases. To be frank, most books published by Packt publishing are ultra low quality. This books is a rare exception! I've been using Unix/Linux/Mac as my main development environment for most of my life. The need to run NVIDIA CUDA accelerated code forces me to set up my development tools in a Windows machine. I needed a book that help me get up to speed quickly. This book is exactly what I was looking for. After reading it, I have to admit that I changed my opinion on command line based Windows tools. I even occasionally feel WLS2 is much better than Mac + brew or Mac + Docker combination. This book is a must read for a Linux/Mac developer who wants to add WSL2 to their tool box.

Recommended For You

Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques
Unlock this book and the full library FREE for 7 days
Start now