Skip to main content
TechRadar TechRadar the technology experts
SG EditionSingapore
DK EditionDanmark FI EditionSuomi NO EditionNorge SE EditionSverige UK EditionUK IT EditionItalia NL EditionNederland BE (NL) EditionBelgië (Nederlands) FR EditionFrance DE EditionDeutschland ES EditionEspaña
US EditionUS (English) CA EditionCanada MX EditionMéxico
AU EditionAustralia NZ EditionNew Zealand
RSS
Sign in
  • View Profile
  • Sign out
  • Black Friday
    • Retailers
      • Black Friday Amazon Deals
      • Black Friday Best Buy Deals
      • Black Friday Deals Under $50/£50
      • Black Friday Walmart Deals
      • Black Friday Target Deals
      • Black Friday Argos Deals
      • Black Friday John Lewis Deals
      • Black Friday Currys Deals
    • Computing
      • Black Friday Laptop Deals
      • Black Friday MacBook Deals
      • Black Friday Dell Deals
      • Black Friday Printer Deals
      • Black Friday Mini PC Deals
      • Black Friday VPN Deals
    • Apple
      • Black Friday Apple Deals
      • Black Friday MacBook Deals
      • Black Friday Apple Watch Deals
    • Phones
      • Black Friday T-Mobile Deals
      • Black Friday Verizon Deals
    • More Black Friday
      • Black Friday TV Deals
      • Black Friday Dyson Deals
      • Black Friday Nespresso Deals
  • Phones
    • Popular Phone Brands
      • iPhone
      • Samsung Galaxy
      • Google Pixel
      • Nothing
      • Motorola
      • OnePlus
      • Xiaomi
      • Honor
      • Oppo
      • Huawei
    • Operating Systems
      • Android
      • iOS
    • More from Phones
      • Network Carriers
      • Phone Accessories
      • Phone Reviews
      • Phone Buying Guides
      • Phone Deals
      • Phone Coupons
      • Phone News
  • Computing
    • Laptops
      • Chromebooks
      • MacBooks
      • Windows Laptops
      • Gaming Laptops
    • PCs
      • Desktop PCs
      • Macs
      • Gaming PCs
    • Software & Security
      • Windows
      • macOS
      • Windows 10 End of Life
      • Antivirus
      • Cyber Security
    • Components
      • CPUs
      • GPUs
      • Storage
      • Nvidia
      • Intel
    • Internet
      • Websites & Apps
      • Wi-Fi & Broadband
      • Social Media
      • Wordle
    • Tablets
      • eReaders
      • iPad
    • VR & AR
    • Peripherals
      • Monitors
      • Keyboards
      • Webcams
      • Mice
    • Popular Computing Brands
      • Dell
      • HP
      • Lenovo
      • Acer
    • More from Computing
      • Computing Reviews
      • Computing Buying Guides
      • Computing Deals
      • Computing Coupons
      • Computing News
  • AI
    • AI Platforms & Assistants
    • OpenAI
    • ChatGPT
    • Gemini
    • Apple Intelligence
    • Claude
  • TVs
    • TV Insights
      • TV Reviews
      • TV Buying Guides
      • TV Deals
      • TV News
      • TVs & home theater coupons
    • More for your TV
      • Home Theatre
      • Soundbars
      • Streaming Devices
      • Projectors
      • Blu-ray
  • Streaming
    • Entertainment
    • Netflix
    • Prime Video
    • Disney+
    • Apple TV+
    • HBO Max
    • Hulu
    • Paramount+
    • How to Watch
    • Streaming coupons
  • Fitness
    • Fitness
      • Smartwatches
      • Fitness Trackers
      • Exercise Equipment
      • Fitness Headphones
      • Fitness Apps
      • Smart Rings
    • Watch Brands
      • Apple Watch
      • Fitbit
      • Garmin
      • Google Pixel Watch
      • Samsung Galaxy Watch
    • Wellbeing
      • Sleep
      • Oral Health
    • More from Fitness
      • Fitness News
      • Fitness Reviews
      • Fitness Buying Guides
      • Fitness Deals
      • Fitness coupons
  • Audio
    • Headphones
      • Earbuds & AirPods
      • Wireless Headphones
    • Speakers
      • Wireless Speakers
      • Sonos
    • Hi-Fi
      • Turntables
      • Portable Players
      • DACs
    • Audio Streaming
      • Spotify
      • Apple Music
    • More from Audio
      • Audio News
      • Audio Reviews
      • Audio Buying Guides
      • Audio Deals
      • Audio coupons
  • VPN
    • VPN Services
    • VPN Security
    • ExpressVPN
    • NordVPN
  • Cameras
    • Camera Types
      • Mirrorless
      • DSLRs
      • Compact
      • Action
      • Video
      • Drones
      • 360 Cameras
      • Dash Cams
    • Camera Brands
      • Canon
      • DJI
      • Fujifilm
      • Nikon
      • GoPro
      • Insta360
    • More from Cameras
      • Camera Accessories
      • Camera Lenses
      • Camera Reviews
      • Camera Buying Guides
      • Camera Deals
      • Camera News
      • Photography
      • Camera coupons
  • Home
    • Smart Home
      • Home Security
      • Smart Speakers
      • Smart Lights
      • Smart Scales
      • Smart Thermostats
      • Amazon Echo
    • Small Appliances
      • Air Fryers
      • Air Quality
      • Coffee Machines
      • Hair Care
      • Vacuums
      • Robot Vacuums
    • Home Brands
      • Dyson
      • Philips Hue
      • Ring
      • Shark
      • Ninja
    • More from Home
      • Home Reviews
      • Home Buying Guides
      • Home Deals
      • Home News
      • Mattress coupons
      • Home & appliances coupons
  • EVs
  • Browse
    • By Type
      • News
      • Best
      • Reviews
      • Deals
      • Versus
      • How To
      • Opinion
      • Coupons
    • Popular Brands
      • Samsung
      • Sony
      • Microsoft
      • Apple
Tech Radar Pro Tech Radar Gaming
  • Black Friday
    • View Black Friday
      • Black Friday Amazon Deals
      • Black Friday Best Buy Deals
      • Black Friday Deals Under $50/£50
      • Black Friday Walmart Deals
      • Black Friday Target Deals
      • Black Friday Argos Deals
      • Black Friday John Lewis Deals
      • Black Friday Currys Deals
      • Black Friday Laptop Deals
      • Black Friday MacBook Deals
      • Black Friday Dell Deals
      • Black Friday Printer Deals
      • Black Friday Mini PC Deals
      • Black Friday VPN Deals
      • Black Friday Apple Deals
      • Black Friday MacBook Deals
      • Black Friday Apple Watch Deals
      • Black Friday T-Mobile Deals
      • Black Friday Verizon Deals
      • Black Friday TV Deals
      • Black Friday Dyson Deals
      • Black Friday Nespresso Deals
  • Phones
    • View Phones
      • iPhone
      • Samsung Galaxy
      • Google Pixel
      • Nothing
      • Motorola
      • OnePlus
      • Xiaomi
      • Honor
      • Oppo
      • Huawei
      • Android
      • iOS
      • Network Carriers
      • Phone Accessories
      • Phone Reviews
      • Phone Buying Guides
      • Phone Deals
      • Phone Coupons
      • Phone News
  • Computing
    • View Computing
    • Laptops
      • View Laptops
      • Chromebooks
      • MacBooks
      • Windows Laptops
      • Gaming Laptops
      • Desktop PCs
      • Macs
      • Gaming PCs
    • Software & Security
      • View Software & Security
      • Windows
      • macOS
      • Windows 10 End of Life
      • Antivirus
      • Cyber Security
    • Components
      • View Components
      • CPUs
      • GPUs
      • Storage
      • Nvidia
      • Intel
    • Internet
      • View Internet
      • Websites & Apps
      • Wi-Fi & Broadband
      • Social Media
      • Wordle
    • Tablets
      • View Tablets
      • eReaders
      • iPad
    • VR & AR
    • Peripherals
      • View Peripherals
      • Monitors
      • Keyboards
      • Webcams
      • Mice
      • Dell
      • HP
      • Lenovo
      • Acer
      • Computing Reviews
      • Computing Buying Guides
      • Computing Deals
      • Computing Coupons
      • Computing News
  • AI
    • View AI
    • AI Platforms & Assistants
    • OpenAI
    • ChatGPT
    • Gemini
    • Apple Intelligence
    • Claude
  • TVs
    • View TVs
      • TV Reviews
      • TV Buying Guides
      • TV Deals
      • TV News
      • TVs & home theater coupons
      • Home Theatre
      • Soundbars
      • Streaming Devices
      • Projectors
      • Blu-ray
  • Streaming
    • View Streaming
    • Entertainment
    • Netflix
    • Prime Video
    • Disney+
    • Apple TV+
    • HBO Max
    • Hulu
    • Paramount+
    • How to Watch
    • Streaming coupons
  • Fitness
    • View Fitness
      • Smartwatches
      • Fitness Trackers
      • Exercise Equipment
      • Fitness Headphones
      • Fitness Apps
      • Smart Rings
      • Apple Watch
      • Fitbit
      • Garmin
      • Google Pixel Watch
      • Samsung Galaxy Watch
      • Sleep
      • Oral Health
      • Fitness News
      • Fitness Reviews
      • Fitness Buying Guides
      • Fitness Deals
      • Fitness coupons
  • Audio
    • View Audio
    • Headphones
      • View Headphones
      • Earbuds & AirPods
      • Wireless Headphones
    • Speakers
      • View Speakers
      • Wireless Speakers
      • Sonos
    • Hi-Fi
      • View Hi-Fi
      • Turntables
      • Portable Players
      • DACs
    • Audio Streaming
      • View Audio Streaming
      • Spotify
      • Apple Music
      • Audio News
      • Audio Reviews
      • Audio Buying Guides
      • Audio Deals
      • Audio coupons
  • VPN
    • View VPN
    • VPN Services
    • VPN Security
    • ExpressVPN
    • NordVPN
  • Cameras
    • View Cameras
      • Mirrorless
      • DSLRs
      • Compact
      • Action
      • Video
      • Drones
      • 360 Cameras
      • Dash Cams
      • Canon
      • DJI
      • Fujifilm
      • Nikon
      • GoPro
      • Insta360
      • Camera Accessories
      • Camera Lenses
      • Camera Reviews
      • Camera Buying Guides
      • Camera Deals
      • Camera News
      • Photography
      • Camera coupons
  • Home
    • View Home
    • Smart Home
      • View Smart Home
      • Home Security
      • Smart Speakers
      • Smart Lights
      • Smart Scales
      • Smart Thermostats
      • Amazon Echo
    • Small Appliances
      • View Small Appliances
      • Air Fryers
      • Air Quality
      • Coffee Machines
      • Hair Care
      • Vacuums
      • Robot Vacuums
      • Dyson
      • Philips Hue
      • Ring
      • Shark
      • Ninja
      • Home Reviews
      • Home Buying Guides
      • Home Deals
      • Home News
      • Mattress coupons
      • Home & appliances coupons
  • EVs
  • Browse
    • View Browse
      • News
      • Best
      • Reviews
      • Deals
      • Versus
      • How To
      • Opinion
      • Coupons
      • Samsung
      • Sony
      • Microsoft
      • Apple
Tech Radar Pro Tech Radar Gaming
Don't miss these
Person writing on computer.
Software & Services Best free word processor of 2025
Windows 10 logo vs Windows 11 logo
Windows Windows 11 vs Windows 10 – the key differences
Linux penguin logo on wood.
Software & Services Best Linux distro for Windows users of 2025
A laptop screen showing Google's app for Windows
Computing Hate Windows Search? Google's new Spotlight-style app could finally be the fix you need
Acer’s Swift laptops deliver performance and portability to fit any budget
Windows How to turn a Windows 10 laptop into a Chromebook
COnfused businessman working with his laptop, at the office
Windows Microsoft is finally adding a real em-dash shortcut to Windows 11 – just as AI made you want to stop using it
a gamer playing on a full gaming setup
Windows New data shows most Windows games now work on Linux – and I hope the same will soon apply to anti-cheat titles
ID theft
Security Ransomware hackers are now running Linux encryptors in Windows to stay undetected
Happy woman
Windows Windows 11 feature to resume Android apps on your PC is finally incoming - and I think this will be a great addition
Happy woman sitting on a bed with a coffee and a laptop
Windows Windows 10's demise could be Linux's gain if the flood of defectors is anything to go by
A Razer Blade 14 (2025) on a desk showing the Windows 11 desktop
Windows Microsoft introduces 'Ask Copilot' box to Windows 11's taskbar – but only if you want AI there
Young woman working at a coffee shop with a laptop
Software & Services Best Ubuntu app of 2025
happy woman using a Windows 10 laptop
Windows Stuck on Windows 10? Tiny11 25H2 is here to answer the prayers of those who can't upgrade to Windows 11
A young woman is working on a laptop in a relaxed office space.
Windows Tiny11 just got tinier – Nano11 shrinks down Windows 11 to a third of its size, but there's a notable catch
Microsoft Surface Laptop SE
Pro Not ready for Cloud PCs just yet? Microsoft will still let you stream individual apps to get you started
Trending
  • Black Friday deals
  • Windows 10 end of life
  • Best laptop
  • Best VPN
  • ChatGPT
  • Best web hosting
  • NYT Wordle today
  1. Computing
  2. Software
  3. Windows

How to install and use Linux Bash in Windows 10

How Tos
By Nate Drake published 8 February 2017

Harness the power of Linux from Windows

When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

Using Bash in Windows

Using Bash in Windows

Linux is a free, alternative Operating System to Windows. In recent years, easy- to-use desktop versions such as Ubuntu have become very popular.

Canonical, the people behind Ubuntu, have worked with Microsoft to enable a version of the Unix Shell 'Bash' for Windows 10.

  • These are the best Linux training providers and online courses in 2017

Why would you wish to do this? In brief, typing commands is a good deal faster than pointing and clicking. There are also thousands of free apps to download and run for which you may have to pay on Windows. This guide will show you how to enable bash and run a few basic, fun commands. 

  • How to use Windows 10
Page 1 of 11
Page 1 of 11
1. Update Windows

1. Update Windows

In order to install Bash on Windows, you need to be running the 64 Bit version of Windows 10 and have installed the Windows 10 Anniversary Update. If you're unsure if you have this, click the search button at the bottom left of your screen and type winver. 

This will display a pop up showing which version of Windows you're running. Check that the "Build" number is at least '1607'. If it isn't, then click the search bar again and search for 'Updates'. Click the option marked 'Check for Updates'.

  • How to download and install the Windows 10 Anniversary Update
Page 2 of 11
Page 2 of 11
2. Enable Developer Mode

2. Enable Developer Mode

The Bash feature in Windows is experimental, so in order to use it, you must enable Developer Mode. Click on the search bar at the bottom left of the screen and type For Developers, then click the option labelled 'For Developers Settings'. 

Click the button next to 'Developer mode'. Read the security warning then click 'Yes' to continue. 

The window will show that it's 'Searching for Developer Mode package', then 'Installing Developer Mode Package'.

Finally you'll see a warning message saying that some features might not work until you restart your PC. Restart the machine to make sure it's fully installed.

Page 3 of 11
Page 3 of 11
3. Enable Windows Subsystem for Linux

3. Enable Windows Subsystem for Linux

Once your machine has restarted, click the search bar at the bottom left once again and type the word ‘Programs’. Click on the option marked ‘Programs and Features’. 

A new window will open. Click the link on the left hand side marked ‘Turn Windows Features on or off’. A pop up will appear with a series of features. You need to click the check box next to ‘Windows Subsystem for Linux (Beta)’, then click 'OK'. 

The feature won't activate fully until you restart your machine. Close and backup any important files then click ‘Restart Now’.

Page 4 of 11
Page 4 of 11
4. Download Ubuntu

4. Download Ubuntu

Windows will take some time to restart as it applies your new features so give it a few minutes to do this. Once you are back on the desktop, click the search bar at the bottom left and type the word ‘Bash’. Click the option marked ‘Bash – Run Command’.

The Bash window will open announcing it wants to install Ubuntu on Windows. Rest assured this only applies to this window and your other files and programs won't be affected. Type ‘y’ to confirm.

The necessary files will be downloaded from the Windows Store, then extracted automatically. 

Page 5 of 11
Page 5 of 11
5. Set up your user account

5. Set up your user account

Bash will now ask you to choose a username and password. Remember this username and password has no bearing on those you use to log in to Windows and you can choose any combination you like.

Enter the username entirely in lower case e.g ‘john’ not ‘John’. When the system prompts you for the password, you may notice nothing appears as you type. This is a security feature of UNIX to prevent people peering over your shoulder to see your information!

Enter the password slowly then press return. Bash will ask you to repeat the password once more to complete setup.

Page 6 of 11
Page 6 of 11
6. How to install your first Linux program in Windows with Bash

6. How to install your first Linux program in Windows with Bash

For your first time with Bash, we're going to install a small, text based program named 'Cowsay'. Type the command:

sudo apt-get install cowsay

Now press return. The sudo part of the command invokes administrator privileges, allowing you to make system-wide changes such as installing a new program.

Bash will now ask for your password. Remember the characters won't appear as you type this but Bash is recording them. Press return, then ‘Y’ to confirm you want to install the software. 

Once the text has stopped scrolling, type the command:

cowsay I have installed bash in Windows!

to have your words repeated by a text drawn cow. 

Page 7 of 11
Page 7 of 11
7. Enter the Matrix

7. Enter the Matrix

Now that you have mastered having a digital cow echo your words back to you, make sure you are comfortable with the process of installing new programs and learn how to stop them.

Run the command

sudo apt-get install cmatrix

Enter your password once again and then ‘Y’ to confirm. Once the install is complete run the command

cmatrix

to display a nostalgic Matrix-style screen of text. Press Ctrl + C at any time to stop the program. Now that you're familiar with how to install programs, visit this webpage from the Ubuntu website to find more. You can install them with the syntax

sudo apt-get install <program-name>
Page 8 of 11
Page 8 of 11
8. Install Python and Pip

8. Install Python and Pip

As handy as Bash is for command line apps, its primary purposes is to help Developers, which is why you need to enable Developer Features in Windows in order to use it. 

One of the most popular programming languages is Python as it's very simple to set up and use. This should come pre-installed when you downloaded Ubuntu with Bash but run 

sudo apt-get update

to be sure your version is up to date.

A tool for use with Python, 'pip' installs and manages programming packages. Download this with the command:

sudo apt-get install python3-pip
Page 9 of 11
Page 9 of 11
9. Download and run a Python Game

9. Download and run a Python Game

As you're working in a Terminal, you can't load websites easily but you can retrieve files with the command wget.

Use this to retrieve a simple Python script based on the text adventure game 'Zork':

wget https://raw.githubusercontent.com/iamjawa/zork-py/master/zork.py

Run the program with

python zork.py

The game is very basic but you can use commands like ‘Open Mailbox’ and ‘Go East’ to progress. 

Press Ctrl + C to quit and then

sudo nano zork.py

to examine the code used in the game. Nano is a very simple text editor in Linux.

See our guide if you'd like to create your own Python adventure game.

Page 10 of 11
Page 10 of 11
10. Further reading

10. Further reading

The commands we have explored so far barely scratch the surface of Bash's potential as it can do virtually anything Linux can once you have mastered the basics.

For a introduction to some Linux Conventions and basic system commands, check out our handy guide.

The Microsoft Website also has a handy guide to Bash and its companion app lxrun which can be used to uninstall and reinstall the Ubuntu image. 

If you want to wipe your Ubuntu installation and start again, click the search bar in Windows and type 'cmd'. 

Click ‘Windows Command Prompt’. Next run the command

lxrun /uninstall /full 
  • Windows 10 command line tricks
Page 11 of 11
Page 11 of 11
Nate Drake

Nate Drake is a tech journalist specializing in cybersecurity and retro tech. He broke out from his cubicle at Apple 6 years ago and now spends his days sipping Earl Grey tea & writing elegant copy.

Read more
Linux penguin logo on wood.
Best Linux distro for Windows users of 2025
 
 
A laptop screen showing Google&#039;s app for Windows
Hate Windows Search? Google's new Spotlight-style app could finally be the fix you need
 
 
Acer’s Swift laptops deliver performance and portability to fit any budget
How to turn a Windows 10 laptop into a Chromebook
 
 
COnfused businessman working with his laptop, at the office
Microsoft is finally adding a real em-dash shortcut to Windows 11 – just as AI made you want to stop using it
 
 
a gamer playing on a full gaming setup
New data shows most Windows games now work on Linux – and I hope the same will soon apply to anti-cheat titles
 
 
ID theft
Ransomware hackers are now running Linux encryptors in Windows to stay undetected
 
 
Latest in Windows
Young woman using laptop, looking annoyed
Windows 11 users rebel as top Microsoft exec says operating system is 'evolving into an agentic OS'
 
 
Happy woman sitting on a bed with a coffee and a laptop
Can't get extended updates for Windows 10 due to a frustrating error message? Microsoft has rolled out a fix
 
 
Close-up of trackpad on Acer Aspire Go 15
Windows 11 laptops could get advanced haptic feedback for trackpads – and it's about time, MacBooks have had this for ages
 
 
Frustrated unhappy laptop user girl touching head at work table with computer
Can't sign up for Windows 10's extended updates? Here's why that might be – and what you can do about it
 
 
A laptop on a desk with the Windows 11 background on its screen.
Fed up with Windows 11's clunky right-click menu? Microsoft just dropped a hint that it could become more streamlined
 
 
COnfused businessman working with his laptop, at the office
Microsoft is finally adding a real em-dash shortcut to Windows 11 – just as AI made you want to stop using it
 
 
Latest in How Tos
Headshots of website builder experts with a purple spiral background and white text over the top.
Optimizing for online sales: Your insider guide to Black Friday success
 
 
Gehamat Shibasaki shielding the ball from Herbie Farnworth, George Williams, Jez Litten and Mike McMeeken during a Rugby League Ashes Test between England and Australia
How to watch Rugby League Ashes Test 3: free streams and team news for 2025 England vs Australia series
 
 
ChatGPT
ChatGPT memories are disappearing for some users – here’s what you can do to protect yours
 
 
Luke Littler in action during his quarter-final match against Gerwyn Price during day five of the Boyle Sports World Grand Prix at Mattioli Arena on October 10, 2025 in Leicester, England.
How to watch Grand Slam of Darts 2025 online: live streams, schedule
 
 
A close up of watchOS 26&#039;s new Hints feature in the Apple Watch Control Center
I was sick of Apple Watch Live Activities until I found this simple fix
 
 
Reece Walsh of Australia scores his team&#039;s fourth try during the Rugby League Ashes match between England and Australia at Wembley Stadium on October 25, 2025 in London, England.
How to watch Rugby League Ashes Test 2: free streams and team news for 2025 England vs Australia series
 
 
LATEST ARTICLES
  1. 1
    ChatGPT 5.1 is smarter, nicer, and better at actually doing what you asked
  2. 2
    Windows 11 users rebel as top Microsoft exec says operating system is 'evolving into an agentic OS'
  3. 3
    Your Samsung TV just got a personality – and it knows what you’re watching, what you need, and when to talk
  4. 4
    What is the release date for Landman season 2 episode 1 on Paramount+?
  5. 5
    5 things we want from the Samsung Galaxy S26 and Galaxy S26 Ultra

TechRadar is part of Future US Inc, an international media group and leading digital publisher. Visit our corporate site.

Add as a preferred source on Google
  • About Us
  • Contact Future's experts
  • Contact Us
  • Terms and conditions
  • Privacy policy
  • Cookies policy
  • Advertise with us
  • Web notifications
  • Accessibility Statement
  • Careers

© Future US, Inc. Full 7th Floor, 130 West 42nd Street, New York, NY 10036.

Please login or signup to comment

Please wait...