Skip to main content
TechRadar TechRadar the technology experts
Asia
flag of Singapore
Singapore
Europe
flag of Danmark
Danmark
flag of Suomi
Suomi
flag of Norge
Norge
flag of Sverige
Sverige
flag of UK
UK
flag of Italia
Italia
flag of Nederland
Nederland
flag of België (Nederlands)
België (Nederlands)
flag of France
France
flag of Deutschland
Deutschland
flag of España
España
North America
flag of US (English)
US (English)
flag of Canada
Canada
flag of México
México
Australasia
flag of Australia
Australia
flag of New Zealand
New Zealand
RSS
Sign in
  • View Profile
  • Sign out
  • 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 News
  • Computing
    • Laptops
      • Chromebooks
      • MacBooks
      • Windows Laptops
      • Gaming Laptops
    • PCs
      • Desktop PCs
      • Macs
      • Gaming PCs
    • Software
      • Windows
      • macOS
    • Components
      • CPUs
      • GPUs
      • Storage
      • Nvidia
      • Intel
    • Internet
      • Websites & Apps
      • Wi-Fi & Broadband
      • Social Media
      • Wordle
    • Security
      • Antivirus
      • Cyber Security
    • 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 News
  • AI
    • AI Platforms & Assistants
    • OpenAI
    • ChatGPT
    • Gemini
    • Apple Intelligence
    • Claude
  • TVs
    • TV Insights
      • TV Reviews
      • TV Buying Guides
      • TV Deals
      • TV News
    • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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 News
  • Computing
    • View Computing
    • Laptops
      • View Laptops
      • Chromebooks
      • MacBooks
      • Windows Laptops
      • Gaming Laptops
      • Desktop PCs
      • Macs
      • Gaming PCs
    • Software
      • View Software
      • Windows
      • macOS
    • Components
      • View Components
      • CPUs
      • GPUs
      • Storage
      • Nvidia
      • Intel
    • Internet
      • View Internet
      • Websites & Apps
      • Wi-Fi & Broadband
      • Social Media
      • Wordle
    • Security
      • View Security
      • Antivirus
      • Cyber Security
    • 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 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
      • 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
  • 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
  • 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
  • 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
  • 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
  • EVs
  • Browse
    • View Browse
      • News
      • Best
      • Reviews
      • Deals
      • Versus
      • How To
      • Opinion
      • Coupons
      • Samsung
      • Sony
      • Microsoft
      • Apple
Tech Radar Pro Tech Radar Gaming
Trending
  • Exclusive Apple interview
  • iPhone Air
  • iPhone 17 Pro
  • Best laptop
  • ChatGPT
  • Best VPN
  • Best web hosting
  • NYT Wordle today
Don't miss these
A young woman is working on a laptop in a relaxed office space.
Windows Can't (or won't) upgrade to Windows 11, but afraid to switch from Windows 10 to Linux? This app might make the transition easy
An Android phone connected to a Windows PC
Android How to connect your Android phone to a Windows PC using Phone Link
Person using laptop and phone
Windows Microsoft gives you another reason to hook up your Windows 11 PC and Android smartphone - it's a security feature that could come in seriously handy
People using Windows 11 laptops
Windows Windows 11 search just got more powerful courtesy of Copilot - and I think this is a great use of AI, even if there'll still be haters
Mature man using laptop in a cafe, looking annoyed
Windows Microsoft just gave the Windows 11 Notepad app a controversial feature that people are either loving or hating
Close up of the Linux penguin.
Software & Services Best Linux terminal emulator of 2025
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
Best Linux distro for developers
Software & Services Best Linux distro for developers of 2025
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
A Windows 11 laptop sitting on a desk in front of a window
Windows Worried about Windows 10's death? Don't fret – Tiny11 is a lightweight version of Windows 11 that cuts bloatware and can run on older hardware
Render of the ROG Xbox Ally and Xbox Ally X
Windows Microsoft's 'if you can't beat them, join them' approach to the threat of Steam in the new Xbox PC app is a great idea
A woman sitting in a chair looking at a Windows 11 laptop
Windows Not a fan of the Copilot app in Windows 11? You might change your mind, as Microsoft just beefed up its powers
Windows 10 Logo on Laptop
Windows Windows 10 is ten years old and it had some of the best and worst ideas ever
Close-up shot of a woman using mobile device with Two-Factor Authentication (2FA) security while logging in securely to her laptop.
Windows Windows 11 has a hidden feature in testing that could be a real timesaver for Android phone owners
Female Programmer Coding on Desktop Computer With Six Displays in Dark Office
Software & Services Best open source software of 2025
  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.

See more Computing How Tos
Read more
A young woman is working on a laptop in a relaxed office space.
Can't (or won't) upgrade to Windows 11, but afraid to switch from Windows 10 to Linux? This app might make the transition easy
 
 
An Android phone connected to a Windows PC
How to connect your Android phone to a Windows PC using Phone Link
 
 
Person using laptop and phone
Microsoft gives you another reason to hook up your Windows 11 PC and Android smartphone - it's a security feature that could come in seriously handy
 
 
People using Windows 11 laptops
Windows 11 search just got more powerful courtesy of Copilot - and I think this is a great use of AI, even if there'll still be haters
 
 
Mature man using laptop in a cafe, looking annoyed
Microsoft just gave the Windows 11 Notepad app a controversial feature that people are either loving or hating
 
 
Close up of the Linux penguin.
Best Linux terminal emulator of 2025
 
 
Latest in Windows
A young woman is working on a laptop in a relaxed office space.
Tiny11 just got tinier – Nano11 shrinks down Windows 11 to a third of its size, but there's a notable catch
 
 
girl using laptop hoping for good luck with her fingers crossed
Windows 11 25H2 installer is now out, but here's why you shouldn't be tempted to download the update yet
 
 
Acer Aspire 14 AI laptop display showing the Windows 11 login screen
Windows 11 has a new update – these are the top 5 features, but there's also an annoying drawback
 
 
A Lenovo Yoga Slim 9i sitting on a picnic table outside
Microsoft makes major change to Copilot app – and I'm wondering if this is a glimpse of Windows 12's Start menu
 
 
COnfused businessman working with his laptop, at the office
Windows 11 25H2 update might disappoint if you were hoping for better performance, new report suggests
 
 
The Asus Vivobook S 15 Copilot+ in silver pictured on a wooden desk.
Windows 11 is getting these two nifty AI upgrades for Copilot+ PCs – and one change that might really annoy people
 
 
Latest in How Tos
Jasprit Bumrah bowls Rizwan of Pakistan in the 2024 ICC T20 Cricket World Cup match between India and Pakistan.
How to watch India vs Pakistan online: Asia Cup 2025 cricket live streams from anywhere
 
 
A man shields himself from the hot sun with an umbrella as he walks past an advertisement of the 2025 World Athletics Championships, which will take place from September 13-21, outside the National Stadium in Tokyo on September 6, 2025.
How to watch World Athletics Championships 2025: FREE live streams, TV channels, Day 3 schedule, men's pole vault, women’s 100m hurdles finals
 
 
Defending US Open champion Carlos Alcaraz of Spain reacts by roaring at the crowd after winning a tennis match earlier this year.
How to watch Sinner vs Alcaraz online: live stream US Open 2025 final for FREE
 
 
asprit Bumrah of India celebrates after dismissing Azam Khan of Pakistan during the ICC Men&#039;s T20 Cricket World Cup West Indies &amp; USA 2024 match between India and Pakistan at Nassau County International Cricket Stadium on June 09, 2024 in New York, New York.
How to watch Asia Cup 2025 online: cricket live streams, fixture list, TV guide, India vs Pakistan and more
 
 
Mariah Carey performs live on stage ahead of the
How to watch MTV Video Music Awards 2025 online: stream Mariah Carey, Lady Gaga, Sabrina Carpenter from anywhere today
 
 
Cowboys vs Eagles
How to watch NFL 2025: free live streams and TV channels, Week 2
 
 
LATEST ARTICLES
  1. 1
    The smallest SSD ever could replace universal microSD memory cards permanently if its inventor does one thing
  2. 2
    Forget full-frame – OM System's latest telephoto zoom proves that Micro Four Thirds is a top choice for macro and wildlife photography
  3. 3
    Dynabook RA73/VY, the lightest AMD laptop ever launched, has gone on sale in Japan, and I secretly hope it will be available worldwide
  4. 4
    Tired of Google Docs? I found an app that just might replace it
  5. 5
    This one feature is making me pick a budget portable projector over well-rated alternatives lately

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

  • 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...