
Enjoy fast, FREE delivery, exclusive deals and award-winning movies & TV shows with Prime
Try Prime
and start saving today with Fast, FREE Delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Instant streaming of thousands of movies and TV episodes with Prime Video
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$36.99$36.99
FREE delivery:
Friday, June 9
Ships from: Amazon.com Sold by: Amazon.com
Buy used: $31.00
Other Sellers on Amazon
+ $5.99 shipping
90% positive over last 12 months
& FREE Shipping
82% positive over last 12 months

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
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
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
- ISBN-101800562446
- ISBN-13978-1800562448
- PublisherPackt Publishing
- Publication dateOctober 23, 2020
- LanguageEnglish
- Dimensions7.5 x 0.56 x 9.25 inches
- Print length246 pages
Frequently bought together

What do customers buy after viewing this item?
- Highest ratedin this set of productsPro Windows Subsystem for Linux (WSL): Powerful Tools and Practices for Cross-Platform Development and CollaborationPaperback
- Most purchasedin this set of productsWindows Terminal Tips, Tricks, and Productivity Hacks: Optimize your command-line usage and development processes with pro-level techniquesPaperback
- Lowest Pricein this set of productsLearn Windows Subsystem for Linux: A Practical Guide for Developers and IT ProfessionalsPaperback
Editorial 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. 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 (October 23, 2020)
- Language : English
- Paperback : 246 pages
- ISBN-10 : 1800562446
- ISBN-13 : 978-1800562448
- Item Weight : 15.2 ounces
- Dimensions : 7.5 x 0.56 x 9.25 inches
- Best Sellers Rank: #1,442,877 in Books (See Top 100 in Books)
- #159 in Windows 10 Guides
- #374 in Software Design Tools
- #589 in Linux Operating System
- 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
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 analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon
Reviewed in the United States on November 1, 2020
-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
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 November 1, 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.


Overview: This book is for anyone who develops on Windows, but who prefers a bash and/or Linux terminal environment for deeper interfacing during development time. I am primarily a Mac and Linux user, but I do a lot of work inside of a VM using Visual Studio, and as such, also need to use the terminal for working with .NET CLI, Azure CLI, and Docker. So whilst I prefer the idea of a Linux terminal, I'd not yet had the time to "go deep" with WSL. This book offers that - and far more - to anyone who wants the Linux experience on Windows.
Written with Personality
The author is honest and engaging, and having seen him at conferences, his voice comes through in the text. There are numerous historical items and interesting side-notes, like the naming format for Windows versions and other little anecdotes early on. Web developers will pick up on some of the easter egg jokes in the text as well, and it keeps the book's pace right on point.
Deep with Details
The book covers a wide swath of topics you'd imagine someone using WSL on Windows would need to know how to do - pathing both directions, interacting with PowerShell (and back again) from the host OS, and so on. At interesting points there are small tidbits of information that are utilitarian but ubiquitous; right at the end of Chapter 4, the author provides a small demo of how to "hit localhost" from within a WSL environment. The timing was perfect - as a web developer myself, I'd begun just prior to this segment to become concerned about the "virtualness" of the WSL 2.0 environment and wondered if it'd impact my own web development efforts, so it was a welcome aside, and right-on-time. This book is *crucial* library material for someone who would be developing on Windows but who needs to "swap back and forth" between their traditional PowerShell environment and the WSL environment.
HUGE Developer Productivity Tips
The chapters that cover productivity tips for developing using WSL are fantastic, as are those on getting Docker containers and Kubernetes set up. The book takes a very deliberate approach to guiding you through the process of getting not only the container-execution and hosting environment up and running, but also through the process of configuring Visual Studio Code to work seamlessly with those containers and orchestration environments. I was specifically excited to see the book call out how to use jq, as that's one of the terminal tools I can't live without, so seeing it in the book was a nice addition.
Ideas for Improvement
The book would benefit from having a "setup" phase in which the reader is walked through emulating the exact UI experience as the screen shots. I found myself wanting to emulate that *to the letter* as I am a ZSH user who adopted a similar terminal style some years ago. As such, it would be great if one of the chapters in the accompanying download represented "how to make your experience look just like the book's experience." I may have missed it, too, but I don't think I saw any mention of how to use the Visual Studio Code tools for Kubernetes in the book - that's a great extension that I think would serve the book (or a second edition) rather well.
The Preface says: "This book is for developers who want to use Linux tools on Windows," and they follow-through on their promise. It was written for people who are familiar with Windows and/or Linux and software development in general, but is still done so in an accessible manner, in case you are (like me) a bit rusty on either environment.
I am a software developer by trade, and have been so for over 25 years, but I have not done a lot in Linux in recent memory (It's all been Windows and .NET, with a focus on PowerShell in the past year when I switched jobs). I had no problem following the book. I found the conventions and formatting to be excellent - code is clearly denoted as such, and the instructions were very easy to follow.
I had already set up a WSL2 environment late this past year, but it was nice to be able to go through the chapters and see what I did right or wrong (more of the former, less of the latter, thankfully). And I definitely learned quite a bit during the read - I didn't know about the drive or command mappings between the two environments, so this has been a learning experience.
At the time of this review, I am only about halfway through the book - I am fiddling around with the Docker examples, and those will prove very useful to me as we use Docker at my place of employment. Looking forward to finishing the book and leveraging the rest of the information.
I really don't have much bad to say at all about what I have read so far. There were a few errata, but that sort of thing is to be expected in a book of this size, and I imagine someone has already reported those. And given that Windows Terminal is still in active development (and the preferences file has already undergone a big change), I expect that section of the book will become obsolete fairly quickly.
Also, when attempting to convert my Linux distros from WSL1 to WSL2 last fall, I did encounter some errors, and it would have been nice to see more troubleshooting tips in the book on what happens if you encounter this sort of thing (in my case, it seems to have stemmed from an incompatibility with Cisco AnyConnect VPN software - at any rate, it seems to have resolved itself after a couple of Windows updates).
That being said, I don't see any of the above detractors as being enough to ding the review any stars - this is an excellent book, and I would have no problem recommending it to anyone who wants to do a deep-dive on WSL2.