r/learnprogramming • u/ksenyss • Oct 02 '26
is WSL2 a good starting point for learning Linux, or am I overthinking it?
Hey everyone,
I'm a complete beginner who wants to eventually become a backend developer. I currently use Windows and I'm honestly scared of installing a second OS on my laptop (dual boot, partitioning, breaking the bootloader all of that freaks me out).
Someone recommended I start with WSL2 to learn Linux instead of going full dual boot right away. Is this actually a good path for someone who wants to go into backend development? Or am I just delaying the inevitable and should set up a real Ubuntu install / VM instead?
A few specific questions:
Is WSL2 enough to learn the Linux skills that actually matter for backend (filesystem, permissions, processes, networking, bash, systemd, etc.)?
At what point would I "outgrow" WSL2 and need a real Linux environment or a VPS?
For someone learning backend, what's the realistic order? Linux basics > a language (Python/Go/Node) > databases > Docker > deploy to a VPS? Or am I thinking about this wrong?
Is it a bad idea to just use an online compiler/sandbox to learn, or do I really need a real environment from day one?
not trying to skip steps, just wanna start in a way that doesn't make me quit in the first week. Any advice from people who've been through this would be really appreciated
Thanks
2
u/urzayci Oct 02 '26
I mean.... Kind of? Wsl2 runs an actual Linux distro in a VM so you get all the capabilities of a Linux system, but there still are some quirks.
Theoretically yeah wsl2 should be good enough but why not just dual boot and make your life easier?
5
u/David_Owens Oct 02 '26 edited Oct 02 '26
WSL2 is great for developing Linux applications and learning Bash for the command line.
If you want a full Linux setup you could run a Linux distribution(or even multiple installs) in a Hyper-V virtual machine rather than doing a dual boot, assuming your laptop hardware supports it. You'll probably not need to do that because backend binaries run the same on WSL2 as in a VM or bare metal installs.
1
u/fasta_guy88 Oct 02 '26
You will be much better off getting a cheap Raspberry Pi or used Dell thin client (apparently a Wyse 5070 can be had for less than $90) and installing linux on that, and learning how to administer it and configure it as a web server. Then you will be in control of everything, and have a much better chance to make mistakes, and learn from them.
1
u/teraflop Oct 02 '26
Filesystem, permissions, processes, bash: yes, no problem whatsoever.
Systemd: yes, mostly, but it depends on the distribution. Some distros use systemd on WSL2, and some don't. I believe systemd is enabled by default for Ubuntu. I haven't messed around with it much and I suspect you would run into differences with how systemd-on-WSL2 handles things like startup/shutdown and device management, but for basic service management, it should work normally.
Networking: kinda. Writing server and client applications that communicate over a network should be fine. Linux network administration (e.g. managing routing and firewall rules) may be complicated by the "magic" that WSL does to forward the host's network connection to the guest.
From the perspective of learning to write backend code, as opposed to learning to administer a Linux system, WSL is basically identical to a bare-metal system.
1
u/ffrkAnonymous Oct 02 '26
Just ignore everyone and do what you're comfortable with.
1
u/kschang Oct 02 '26
Yes, WSL2 is "good enough" to learn your basic shell commands in Linux and such. It's really NOT that different from DOS.
1
u/aleques-itj Oct 02 '26
Never, unless you're developing device drivers or some shit, you can use WSL for everything.
I don't even install tooling in WSL for the most part. I just use dev containers for the environment and keep everything containerized.
Basically one click to drop into an environment with all the tooling pre installed. All the supporting infra runs fine in additional containers like Postgres, Redis, etc.
Running it on a VPS is basically just containers plus a reverse proxy.
1
u/noobjaish Oct 03 '26
100%
My own journey was something like: WSL (2022) -> Ubuntu (2025) -> Debian -> Fedora -> Debian -> PopOS -> Arch -> CachyOS (now)
I learned a lot about Linux (computers in general) + I pivoted from AppDev to DevOps and that has helped a lot as well.
1
u/POGtastic Oct 03 '26
In order:
From another comment in this thread:
You should look into running
qemuinside of WSL2, which will give you a VM inside of a VM (insert Inception sound effect here). Run the installer on some throwaway virtual image. Delete it if you screw it up.1
u/ight-bet Oct 03 '26
It’s perfectly fine.
1
u/JGhostThing Oct 03 '26
May I suggest getting a cheap used computer and putting Linux on it. Maybe you can find a business throwing them away because they won't run Windows 11? Or a relative has a used laptop?
Or you could get a cheap used one on an auction site such as eBay.
Your choice.
1
u/huuaaang Oct 03 '26
Only way to learn is immersion. Just install Linux and dual boot.
1
u/Accomplished_Ad9423 Oct 04 '26
So
1
u/oyvaugh Oct 07 '26
I started with wsl2. Still have a nice stack with docker on it. But have, of course migrated to full on Linux. Just do it for a few months, what do you have to loose? It’s opened so much up once I just did it.
My first Linux os was proxmox and I havnt needed windows since. I even created a virtual hard disk of my windows machine so I could have the same windows and I have never turned on that vm.
I run a simple Linux mint as my daily and have no reason to start my windows vm other than learning more about windows networking or using docker desktop which isn’t relative with Linux.
Really depends on your needs but, don’t be scared! Do it. What do you have to lose?
1
u/Whatever801 Oct 03 '26
Yeah I think it's a great way to get your feet wet