Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet or computer – no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques: Maximise productivity of your Windows 10 development machine with custom workflows and configurations Paperback – 10 Nov. 2020
Purchase options and add-ons
A practical handbook that will help you bridge the gap between Windows and Linux to develop apps that leverage the best features across both ecosystems with seamless interoperability
Key Features
- Configure and control WSL to suit your needs and preferences
- Discover tips for working seamlessly between Windows and WSL Linux distros
- Learn how to work effectively with containers in WSL, as well as how to containerize your development environments with Visual Studio Code to isolate your dependencies
Book Description
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.
What you will learn
- Install and configure Windows Subsystem for Linux and Linux distros
- Access web applications running in Linux from Windows
- Invoke Windows applications, file systems, and environment variables from bash in WSL
- Customize the appearance and behavior of the Windows Terminal to suit your preferences and workflows
- Explore various tips for enhancing the Visual Studio Code experience with WSL
- Install and work with Docker and Kubernetes within Windows Subsystem for Linux
- Discover various productivity tips for working with Command-line tools in WSL
Who this book is for
This book is for developers who want to use Linux tools on Windows, including Windows-native programmers looking to ease into a Linux environment based on project requirements or Linux developers who've recently switched to Windows. This book is also for web developers working on open source projects with Linux-first tools such as Ruby or Python, or developers looking to switch between containers and development machines for testing apps. Prior programming or development experience and a basic understanding of running tasks in bash, PowerShell, or the Windows Command Prompt will be required.
Table of Contents
- Introduction to the Windows Subsystem for Linux
- Installing and Configuring the Windows Subsystem for Linux
- Getting Started with Windows Terminal
- Windows to Linux Interoperability
- Linux to Windows Interoperability
- Getting More from Windows Terminal
- Working with Containers in WSL
- Working with WSL Distros
- Visual Studio Code and WSL
- Visual Studio Code and Containers
- Productivity Tips with Command-Line Tools
- Print length246 pages
- LanguageEnglish
- PublisherPackt Publishing - ebooks Account
- Publication date10 Nov. 2020
- Dimensions23.5 x 19.1 x 1.32 cm
- ISBN-101800562446
- ISBN-13978-1800562448
Customers who viewed this item also viewed
Product description
About the Author
Stuart Leeks is a principal software development engineer at Microsoft. He has worked with a wide range of customers, from small ISVs to large enterprises, to help them be successful building with the Microsoft technology stack. While Stuart has experience with a diverse set of technologies, he is most passionate about the web and the cloud.
Stuart is a web geek, lover of containers, cloud fanatic, feminist, performance and scalability enthusiast, father of three, husband, and a salsa dancer and teacher, and loves bad puns. He has been writing code since the days of the BBC Micro and still gets a kick out of it.
Product details
- Publisher : Packt Publishing - ebooks Account (10 Nov. 2020)
- Language : English
- Paperback : 246 pages
- ISBN-10 : 1800562446
- ISBN-13 : 978-1800562448
- Dimensions : 23.5 x 19.1 x 1.32 cm
- Best Sellers Rank: 1,220,249 in Books (See Top 100 in Books)
- 87 in Introduction to Linux
- 313 in Linux Distributions
- 359 in Microsoft Operating Systems
- Customer reviews:
About the author

Stuart Leeks is a Principal Software Development Engineer at Microsoft. He has worked with a wide range of customers from small ISVs to large enterprises to help them be successful building with the Microsoft technology stack. Whilst Stuart has experience of a diverse set of technologies, he is most passionate about the web and cloud.
Stuart is a web geek, lover of containers, cloud nut, feminist, performance & scalability enthusiast, father of three, husband, salsa dancer & teacher, and loves bad puns. He has been writing code since the days of the BBC Micro and still gets a kick out of it.
https://wsl.tips
Customer reviews
- 5 star4 star3 star2 star1 star5 star63%25%13%0%0%63%
- 5 star4 star3 star2 star1 star4 star63%25%13%0%0%25%
- 5 star4 star3 star2 star1 star3 star63%25%13%0%0%13%
- 5 star4 star3 star2 star1 star2 star63%25%13%0%0%0%
- 5 star4 star3 star2 star1 star1 star63%25%13%0%0%0%
Customer Reviews, including Product Star Ratings, help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyses reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from other countries
author gave an example with a redirect, calling it a pipe (page 73). I truly hope this was just a coincidence and that it's getting better. It does seem to contain a good number of useful tips and tricks
Experienced users will find WSL insights to increase productivity and be able to take advantage of new things such as pipe Linux command output on Windows commands and vice versa, hence improving DevOps workflows.
New users will quickly learn how to set up a fancy environment to work with Linux and Windows altogether, without having to reboot the computer, while it gives historical context for everyone. Furthermore, it has tips on how to customize your terminal and seamlessly use Docker.
In summary, this book will turn you into a WSL superhero, and it will encourage IT professionals that use Linux or Mac users to switch to Windows 10 with WSL2 to enjoy the best of the two worlds.
Reviewed in the United States on 1 November 2020
Experienced users will find WSL insights to increase productivity and be able to take advantage of new things such as pipe Linux command output on Windows commands and vice versa, hence improving DevOps workflows.
New users will quickly learn how to set up a fancy environment to work with Linux and Windows altogether, without having to reboot the computer, while it gives historical context for everyone. Furthermore, it has tips on how to customize your terminal and seamlessly use Docker.
In summary, this book will turn you into a WSL superhero, and it will encourage IT professionals that use Linux or Mac users to switch to Windows 10 with WSL2 to enjoy the best of the two worlds.
