I recently started training for the CompTIA A+ certification at Per Scholas. Core 2 covers a substantial amount of Linux-specific content.

To get more comfortable with Linux — especially command-line operations — I needed a Linux system to practice on. Since my machine runs Windows 11 Pro, my first instinct was to set up a virtual machine using VirtualBox or VMware. But that approach demands a lot of system resources. After some back-and-forth with AI, I discovered that modern Windows ships with WSL2 (Windows Subsystem for Linux 2) built in. Once installed, you can launch a Linux system directly inside Windows.

Quick Installation

No fluff — let's get started.

Run CMD as Administrator on Windows, open the command line, and enter the following command:

wsl --install

After pressing Enter, Windows will begin downloading the default Linux distribution — Ubuntu. Once the download finishes, installation starts automatically. You'll then be prompted to create a user account (the default username matches your current Windows username) and set a password. Note: password input is invisible — just type and press Enter. You'll be asked to confirm it once more.

Install Linux with wsl --install command in Windows

Once everything completes successfully, congratulations — you now have a Linux/Ubuntu system inside Windows, natively.

Notes

  1. WSL2 is supported on all Windows 11 editions (Home, Pro, and Enterprise). For Windows 10, make sure your build is 2004 (Build 19041) or later.

  2. WSL2 relies on hardware virtualization. If installation keeps failing, check whether hardware virtualization is enabled. Open Task Manager, click the Performance tab, and select CPU. Look for Virtualization in the lower-right corner to see whether it's enabled. Check Virtualization If Virtualization shows as Disabled, restart your computer and repeatedly press F2 or Del to enter BIOS/UEFI settings. Locate the Intel VT-x or AMD-V option and set it to Enabled.

  3. If nothing happens after installation completes, try restarting Windows.

Basic Usage

Once installation is done and Windows has restarted, open File Explorer. At the very bottom of the left navigation panel, you'll be pleasantly surprised to find a Linux penguin icon. Click it to see a list of your installed Linux distributions. If you followed the command above, you'll see an Ubuntu directory.

Linux in File Explorer

Click that directory and you're taken straight to the root of your Ubuntu filesystem. You can drag files from your Windows desktop into it, or pull files out from Ubuntu back to Windows. This drag-and-drop file exchange is more convenient than anything a traditional virtual machine offers.

Another change shows up in the CMD terminal. In the dropdown next to the title bar, you'll now see an Ubuntu option. Click it and a new tab opens running Ubuntu directly — extremely convenient.

CMD Droplist

There are other ways to launch Linux/Ubuntu as well — for example, press Ctrl+R, type wsl, and hit Enter. Or simply type wsl in CMD and press Enter.

Launching Linux/Ubuntu this way is fast — nearly as instant as opening any Windows app — and uses very little resources. Traditional virtual machines simply can't compare.

To exit Linux and return to Windows, just type exit.

Other WSL Commands

We used wsl --install to install Ubuntu, but there are other WSL options worth knowing. (The following commands are run in Windows CMD — not inside Linux.)

wsl --list: Lists all currently installed Linux distributions.

wsl --list --online: Lists all Linux distributions available for download from Microsoft.

To install a different Linux distribution (e.g., Kali Linux): wsl --install --Kali-linux

If you have multiple distributions installed, launch a specific one by name: wsl -d Kali-linux

wsl --status: Displays current WSL status information.

To remove a Linux distribution (e.g., Kali Linux):

wsl --unregister Kali-linux

This is a physical-level wipe! Once executed, the corresponding Linux folder and all its data vanish instantly with no recovery possible. BACKUP your DATA!

Additional Tips

  1. After closing all Linux windows, Linux is still running in the background on standby. To fully release those resources, run: wsl --shutdown

  2. If you get an error on startup one day, don't rush to uninstall. Try this command first: wsl --update It works like a phone OS update — automatically fetching the latest Linux kernel patches from the cloud.

  3. Desktop Shortcut

To create a desktop shortcut that launches Linux with a single click, right-click the desktop and select New → Shortcut. Set the target to wsl -d Ubuntu.

To use the Ubuntu icon for the shortcut, right-click it → PropertiesChange Icon, then navigate to C:\Users\[YourUsername]\AppData\Local\wsl\ and select the native Ubuntu icon.


Windows 11 下 5 分钟安装 Linux

2026-02-26 by Vincent Ping cn en 

详解利用 WSL2 在 Windows 11 下构建原生 Linux 环境的实战流程,避开资源繁重的传统虚拟机。 涵盖 BIOS 虚拟化开启、wsl --install 一键部署及文件系统映射机制,并预警 --unregister 彻底抹除数据的风险。

read more

I Built a Study Tool While Preparing for CompTIA A+ — Now It's Open Source

2026-02-22 by Vincent Ping

I was studying for CompTIA A+ when I got frustrated with reviewing wrong answers in a plain document. So I built a tool — and now it's open source.

read more

备考 CompTIA A+,我用 Python 做了个错题练习工具

2026-02-22 by Vincent Ping

备考 CompTIA A+ 期间,用文档记录错题越来越不方便,于是我用 Python 做了一个交互式的错题练习工具,现已开源。

read more

龙龙读书记1:爱上植物的第一本书

2025-02-12 by Vincent Ping

天下没有不爱阅读的孩子,关键是要找到孩子的兴趣!所以对于家长来说,培养孩子的阅读习惯,从发现孩子的兴趣开始。

read more

科幻故事 | 咖啡留香:一次关于意识上传的实验记录

2024-11-05 by Vincent Ping

"意识不是被给予的,而是不断创造的。"这是李元教授生前常说的一句话。作为一名量子物理学家,他用自己最后的时光,完成了一场惊世骇俗的实验。

read more

带儿子学魔方的几点体会

2020-12-16 by Vincent Ping

从龙龙5岁就和孩子一起玩,学了忘,忘了学,前前后后好几年,值得么?

read more

Tkinter根窗口设置小技巧:程序启动最大化和程序窗口图标设置

2020-10-27 by Vincent Ping

介绍Tkinter程序根窗口的设置方法,同时介绍程序启动时窗口最大化和程序窗口图标设置的小技巧。

read more

Hello World,编写一个Tkinter程序需要哪些基本步骤?

2020-10-13 by Vincent Ping

Tkinter程序的开发工作可以分成四个步骤。

read more

孩子运动,是选篮球还是足球??

2020-08-24 by Vincent Ping

篮球和足球都是团体对抗的球类运动,训练方式也相似,对于提高身体素质,培养孩子的对抗意识和团队合作意识很有帮助。但是因为运动形式的差别,篮球更有利于身体的全面锻炼,对孩子长身高有帮助,同时也有利于脑部发育。

read more

2020年温针灸足三里筑基记录

2020-06-03 by Vincent Ping

2018年的温针灸足三里百次筑基,对我的身体有很大帮助。今年准备再次温针灸足三里,希望经过三伏天,重新百次筑基。6月1号开始第一次,特记录如下。

read more

Python自带的GUI库Tkinter是否值得学习?

2020-05-29 by Vincent Ping

Python语言可以用在很多方面,网站开发、数据分析、运营维护、游戏开发等等,那么桌面应用程序GUI呢?其实Python标准库里自带Tkinter就是干这个的。相比PyQT、wxPython等等,Tkinter有哪些优势和不足,是否值得学呢?

read more

站桩记录2:调身、调气和调心

2016-06-22 by Vincent Ping

站桩的过程实际上首先就是“调身”的过程。“下紧上松”,从双脚开始,到膝盖,再到裆部的放松。上半身则要求头部顶悬、下颌微内收;松肩沉肘,双掌环抱。

read more

站桩记录1:开始练习站桩

2016-05-22 by Vincent Ping

最近看了一些关于站桩的资料,同时也接触了一些师傅,请教了养生的问题,大家都比较推崇站桩。于是决定试试。

养生桩练 …

read more

创意与验证:如何获得好的创意?——Udacity课程《产品设计》学习笔记2

2016-05-08 by Vincent Ping

要想有一个好的创业点子,一定要对所做的事情有激情。千万不要只是为了创业而去创业。我们之所以要创业,是因为要解决一个问题,一个会让我们日夜寻思的问题。

read more

Breeze,让无车者也能成为Uber/Lyft司机

2016-04-28 by Vincent Ping

对于Uber和Lyft这样的打车平台来说,随着对出行市场的占有率越来越高,他们面对的问题和别的行业有所不同。对于他们来说,获取用户非常简单,甚至太简单了,导致现在他们常常面临的问题是:用户太多,而司机太少。

read more

创业者应该具有怎样的素质?——Udacity课程《产品设计》学习笔记1

2016-04-20 by Vincent Ping

企业家是否能够培养?这本身就是一个问题。一个企业家所扮演的角色非常广泛,除了企业内的经营管理工作,还有很多企业外的作用,所以要找到一个简单的成功公式非常困难。

read more

Instacart创业者早期的故事

2016-04-16 by Vincent Ping

故事从2010年1月说起,80后的Apoorva Mehta在亚马逊已经工作了2年,作为一个开发工程师,他在亚马逊学到了很多,但同时也开始对公司里缓慢官僚的气氛有些感到厌倦,他希望有所改变。

read more

美式音标练习笔记——“李阳疯狂英语手势突破发音”

2015-12-28 by Vincent Ping

本文是我为了练习美式英语而学习美式音标的笔记,采用了“李阳疯狂英语手势突破发音”教程。

read more

如何去除Joomla 3网站静态化URL地址中的分类ID和文章ID

2015-10-01 by Vincent Ping

Joomla是一个非常专业的网站内容管理系统(CMS),但是其在SEO搜索引擎优化后的URL模式上有一些不足。这里记录了我的一些改进方法。

read more

Remove Category and Article ID from URL in Joomla 3

2015-10-01 by Vincent Ping

Joomla is a very professional content management system (CMS), but there're some minor shortcoming within the SEO URL Mapping.

read more

深深网络深似海----搜索引擎之外的网络世界

2003-11-10 by Vincent Ping

互联网是一个信息的海洋,那么搜索引擎抓取只是这个海洋的表面,而在信息海洋的深处,存在巨大数量的内容,搜索引擎无法启及,这些内容叫着“DEEP WEB”,或者“INVISIBLE WEB”。

read more

robots.txt和Robots META标签

2003-10-18 by Vincent Ping

对于网站管理者和内容提供者来说,有时候会有一些站点内容,不希望被ROBOTS抓取而公开。为了解决这个问题,ROBOTS开发界提供了两个办法:一个是robots.txt,另一个是The Robots META标签。

read more

RSS及其发展历程简介

2003-10-10 by Vincent Ping

RSS是一种描述和同步网站内容的格式,是目前使用最广泛的XML应用。RSS应用在国外已经非常普遍,从个人博客(Blog)栏目、企业站点到世界级的门户都提供基于RSS的服务。

read more

动态网站的搜索引擎策略

2003-09-08 by Vincent Ping

动态网站提高了网站与用户的交互,方便网站的维护和管理。但是如何提高动态网站在搜索引擎中的排名呢?

read more

网络推广新潮流——发行免费电子图书

2002-11-04 by Vincent Ping

使用免费电子图书进行营销就像共享软件一样,非常流行。它真正体现了为访问者着想,同时用户也可以收藏,以备进一步的阅读参考。每一本电子书一旦放到网上,就如同有了自己的生命,到处传播,不需要我们再去费心,同时电子书籍又可以保证内容的完整。

read more

如何迅速增加电子杂志的订户数

2001-02-01 by Vincent Ping

当我们建立起一份电子杂志后,除了系统的管理、内容的准备等等外,最终也会面对临一个推广的问题:怎么样能迅速扩大自己的知名度,增加杂志的订户数呢?

read more

自动回复机----电子邮件营销中的另一种秘密武器

2001-01-26 by Vincent Ping

小小的电子邮件,有这么多的应用方法,而且还在不断诞生着一些极具创造性的新应用。这里想给大家介绍的是电子邮件营销中的另一个秘密武器:自动回复机(AutoResponder)

read more

开始建立你的邮件列表

2000-05-12 by Vincent Ping

邮件列表是保持与客户沟通的一种很好的工具。

read more

网上淘金——新世纪的八条网络解决之道

2000-02-01 by Vincent Ping

互联网究竟能不能赚钱,除了依赖那些风险基金、为上市奋斗外,我们是否还有其他方式生存和发展呢?

read more

网页中META标签的使用

2000-01-04 by Vincent Ping

网页中使用META值,以便搜索引擎能知道网页的内容。

read more

让用户知道你——建设企业网站之推广篇

1999-10-07 by Vincent Ping

初步完成一个站点的设计建设,只是企业网站经营的开始。为了真正发挥一个站点的作用,我们要以该站点为基础,在网上网下开展长期而有效的推广工作。

read more

组织网站内容——建设企业网站之建设篇

1999-09-27 by Vincent Ping

在做完“企业网站定位”工作、确定了网站“为什么做”和“为谁而做”,接下来就需要根据目标访问者的潜在需求确定网站的内容。

read more

为什么做与为谁而做——建设企业网站之定位篇

1999-09-23 by Vincent Ping

建设一个企业网站,首先需要做的应该是确定建站的目的,也就是确定为什么做和为谁而做的问题。

read more

提高在搜索引擎中的排名

1999-09-09 by Vincent Ping

提高网站在搜索引擎中的排名,相关的几个问题

read more

企业网站的4种模型

1999-09-02 by Vincent Ping

互联网上每个站点都有其商务模式,虽然这些模式是千差万别的,但实际上都可以归结到4种典型的商务模式上来,这些模式构成了网站的基础结构。

read more

注册搜索引擎问与答

1999-08-26 by Vincent Ping

注册搜索引擎过程中一些常见问题及其解答。

read more

未来五个热门的互联网方向

1999-08-19 by Vincent Ping

很多朋友都希望能在网上创立自己的事业,但如何选择自己的方向呢?下面是我的五条建议。

read more

了解搜索引擎

1999-06-10 by Vincent Ping

在所有网络推广的方法中,搜索引擎是大家谈论最多的,我们的推广之旅也将从这里开始。

read more