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
- 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
OPTION ONETo Download a "Bash on Ubuntu on Windows" Shortcut
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.
OPTION TWOTo Manually Create a "Bash on Ubuntu on Windows" Shortcut
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)
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)
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.
- 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
The important thing for people to remember here is to first follow the steps in the other guide to see the Bash on Ubuntu on Windows(beta) enabled and then open the Bash console after the restart to be sure the download and install from the Windows store takes place. Otherwise the "lxss" sub folder won't be there to find under the "users\user account\Appdata\Local" directory.
A third option recommended for experienced users only of course in seeing the new shortcut created is by manually browsing to the bash.exe file itself and then selecting the create shortcut option found in the right click menu. The icon was also browsed to manually being the long route option however. This is a slight pictorial of how that was done as well as choosing a shorter name for the shortcut itself which is still user choice there.
Actually two shortcuts were created to illustrate things here. The lower one on the left was by Option Two while the yellow lines point out the steps taken for the manual long route option. Once created you can also opt to see the new shortcut pinned to the 10 Start menu or taskbar if not both.