How to Create a Bash on Ubuntu on Windows 10 shortcut
InformationMicrosoft first made investments that improve cmd, PowerShell, and many other command-line tools and developer scenarios. Second Microsoft decided to grow their command line family by adding real, native Bash and with it support for Linux command-line tools which run directly on Windows in an environment that behaves like Linux!
Starting with Windows 10 Insider Preview Build 14316, you can natively run Bash in Windows. BASH is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distro’s, and in OSX. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
You can now run Bash scripts, Linux command-line tools like sed, awk, grep, and you can even try Linux-first tools like Ruby, Git, Python, etc. directly on Windows. You can also access your Windows filesystem from within Bash allowing you to work on the same set of files using your preferred Windows tools or Linux command-line tools.
For more details about Bash, see:
- Run Bash on Ubuntu on Windows | Building Apps for Windows
- Bash on Ubuntu on Windows | MSDN
- Bash Frequently Asked Questions | MSDN
- Bash Command Reference | MSDN
This tutorial will show you how to create or download a Bash on Ubuntu on Windows shortcut in Windows 10.
NoteAn administrator must enable Bash first, and you must install the Bash app afterwards before you will be able to create and use a Bash on Ubuntu on Windows shortcut.
For how, see OPTION ONE here: How to Enable or Disable Bash on Ubuntu on Windows 10
CONTENTS:
- Option One: To Download a "Bash on Ubuntu on Windows" Shortcut
- Option Two: To Manually Create a "Bash on Ubuntu on Windows" Shortcut
EXAMPLE: Bash on Ubuntu on Windows
1. Click/tap on the Download button below to download the .zip file below.
2. Save the .zip file to your desktop.
3. Unblock the .zip file..
4. Open the .zip file, and extract (drag and drop) the shortcut to your desktop.
5. You can Pin to Taskbar, Pin to Start, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this shortcut to where you like for easy use.
6. When finished, you can delete the downloaded .zip file if you like.
1. Right click or press and hold on an empty area on your desktop, and click/tap on New and Shortcut.
2. Copy and paste the location below into the location area, and click/tap on Next. (see screenshot below)
%windir%\System32\bash.exe ~
3. Type Bash on Ubuntu on Windows for the name, and click/tap on the Finish button. (see screenshot below)
NOTE: You could name this shortcut anything you would like though.
4. Right click or press and hold on the new Bash on Ubuntu on Windows shortcut, and click/tap on Properties.
5. Click/tap on the Shortcut tab, then click/tap on the Change Icon button. (see screenshot below)
6. In the line under "Look for icons in this file", copy and paste the location below, and press Enter. (see screenshot below)
%USERPROFILE%\AppData\Local\lxss\bash.ico
7. Select the icon highlighted in blue above, and click/tap on OK. (see screenshot above)
NOTE: You could use any icon that you would like instead though.
8. Click/tap on OK. (see screenshot below step 5)
9. You can Pin to Taskbar, Pin to Start, add to All apps, add to Quick Launch, assign a keyboard shortcut to, or move this shortcut to where you like for easy use.
That's it,
Shawn
Related Tutorials
- How to Enable or Disable Bash on Ubuntu on Windows 10
- How to Add 'Open Bash window here' context menu in Windows 10
- How to Add 'Open Bash window here as administrator' context menu in Windows 10
- How to Add or Remove Open Linux shell here context menu in Windows 10