{"id":3989,"date":"2017-04-24T20:41:03","date_gmt":"2017-04-25T01:41:03","guid":{"rendered":"http:\/\/neosmart.net\/blog\/?p=3989"},"modified":"2017-04-25T13:28:20","modified_gmt":"2017-04-25T18:28:20","slug":"meet-your-new-best-friend-for-wsl","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/","title":{"rendered":"Meet $, your new best friend for WSL"},"content":{"rendered":"<p><a href=\"http:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1.png\" rel=\"follow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-3993 colorbox-3989\" src=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1.png 512w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1-150x150.png 150w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1-300x300.png 300w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>We&#8217;ve raved about Microsoft&#8217;s latest take on a Linux subsystem for Windows, this time in the form of the oddly-dubbed &#8220;Bash on Ubuntu on Windows&#8221; Windows Subsystem for Linux \u2014 herein and forever after referred to only as WSL for the sake of our collective sanity \u2014 but as awesome as being able to type <code>bash<\/code> in a command prompt to get access to holy posix goodiness, we think we can do better. Meet <code>$<\/code>.<\/p>\n<p>$, formally known as <code>RunInBash<\/code>, is a simple command line helper utility that simply runs whatever follows it under WSL rather than in the current (Windows) terminal. Here&#8217;s a picture to illustrate (click to expand):<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash.png\" rel=\"follow\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3990 colorbox-3989\" src=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-1024x466.png\" alt=\"\" width=\"620\" height=\"282\" srcset=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-1024x466.png 1024w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-600x273.png 600w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-500x227.png 500w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash.png 1348w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>RunInBash is the equivalent of supplying a correctly- and manually-escaped <code>bash.exe -c \"command here\"<\/code> parameter, only it takes care of all the escaping and interpolation for you.<\/p>\n<p><code>$ printf \"It's just like \\\"%s\\\"\" magic<\/code><\/p>\n<p><a href=\"http:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-2.png\" rel=\"follow\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3991 colorbox-3989\" src=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-2-1024x302.png\" alt=\"\" width=\"620\" height=\"183\" srcset=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-2-1024x302.png 1024w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-2-600x177.png 600w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-2-500x148.png 500w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash-2.png 1322w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>RunInBash is, of course, released 100% free under the terms of the MIT license, and is <a rel=\"nofollow\" href=\"https:\/\/github.com\/neosmart\/RunInBash\">published on GitHub<\/a>. Pull requests are welcomed and feel free to fork away!<\/p>\n<p class=\"save\"><a href=\"\/RunInBash\/\">Download RunInBash 0.1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve raved about Microsoft&#8217;s latest take on a Linux subsystem for Windows, this time in the form of the oddly-dubbed &#8220;Bash on Ubuntu on Windows&#8221; Windows Subsystem for Linux \u2014 herein and forever after referred to only as WSL for &hellip; <a href=\"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3993,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[448,52,951,950],"class_list":["post-3989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-freeware","tag-open-source","tag-windows-subsystem-for-linux","tag-wsl"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"We&#039;ve raved about Microsoft&#039;s latest take on a Linux subsystem for Windows, this time in the form of the oddly-dubbed &quot;Bash on Ubuntu on Windows&quot; Windows Subsystem for Linux \u2014 herein and forever after referred to only as WSL for the sake of our collective sanity \u2014 but as awesome as being able to type\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"NeoSmart Technologies\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#article\",\"name\":\"Meet $, your new best friend for WSL | The NeoSmart Files\",\"headline\":\"Meet $, your new best friend for WSL\",\"author\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/wp-content\\\/uploads\\\/RunInBash1.png\",\"width\":512,\"height\":512},\"datePublished\":\"2017-04-24T20:41:03-05:00\",\"dateModified\":\"2017-04-25T13:28:20-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#webpage\"},\"articleSection\":\"Software, freeware, open source, windows subsystem for linux, wsl\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/#listItem\",\"name\":\"Software\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/#listItem\",\"position\":2,\"name\":\"Software\",\"item\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#listItem\",\"name\":\"Meet $, your new best friend for WSL\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#listItem\",\"position\":3,\"name\":\"Meet $, your new best friend for WSL\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/#listItem\",\"name\":\"Software\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#organization\",\"name\":\"The NeoSmart Files\",\"description\":\"Recovery software and more\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/\",\"name\":\"NeoSmart Technologies\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f542321efe8fccee6fb0b3322c2f647e2ab44a861d6b18ff16a79d032f8574cd?s=96&d=mm&r=pg\",\"width\":96,\"height\":96,\"caption\":\"NeoSmart Technologies\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#webpage\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/\",\"name\":\"Meet $, your new best friend for WSL | The NeoSmart Files\",\"description\":\"We've raved about Microsoft's latest take on a Linux subsystem for Windows, this time in the form of the oddly-dubbed \\\"Bash on Ubuntu on Windows\\\" Windows Subsystem for Linux \\u2014 herein and forever after referred to only as WSL for the sake of our collective sanity \\u2014 but as awesome as being able to type\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/wp-content\\\/uploads\\\/RunInBash1.png\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#mainImage\",\"width\":512,\"height\":512},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/meet-your-new-best-friend-for-wsl\\\/#mainImage\"},\"datePublished\":\"2017-04-24T20:41:03-05:00\",\"dateModified\":\"2017-04-25T13:28:20-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/\",\"name\":\"The NeoSmart Files\",\"description\":\"Recovery software and more\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Meet $, your new best friend for WSL | The NeoSmart Files","description":"We've raved about Microsoft's latest take on a Linux subsystem for Windows, this time in the form of the oddly-dubbed \"Bash on Ubuntu on Windows\" Windows Subsystem for Linux \u2014 herein and forever after referred to only as WSL for the sake of our collective sanity \u2014 but as awesome as being able to type","canonical_url":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#article","name":"Meet $, your new best friend for WSL | The NeoSmart Files","headline":"Meet $, your new best friend for WSL","author":{"@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author"},"publisher":{"@id":"https:\/\/neosmart.net\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1.png","width":512,"height":512},"datePublished":"2017-04-24T20:41:03-05:00","dateModified":"2017-04-25T13:28:20-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#webpage"},"isPartOf":{"@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#webpage"},"articleSection":"Software, freeware, open source, windows subsystem for linux, wsl"},{"@type":"BreadcrumbList","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/neosmart.net\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/category\/software\/#listItem","name":"Software"}},{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/category\/software\/#listItem","position":2,"name":"Software","item":"https:\/\/neosmart.net\/blog\/category\/software\/","nextItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#listItem","name":"Meet $, your new best friend for WSL"},"previousItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#listItem","position":3,"name":"Meet $, your new best friend for WSL","previousItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/category\/software\/#listItem","name":"Software"}}]},{"@type":"Organization","@id":"https:\/\/neosmart.net\/blog\/#organization","name":"The NeoSmart Files","description":"Recovery software and more","url":"https:\/\/neosmart.net\/blog\/"},{"@type":"Person","@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author","url":"https:\/\/neosmart.net\/blog\/author\/neosmart\/","name":"NeoSmart Technologies","image":{"@type":"ImageObject","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f542321efe8fccee6fb0b3322c2f647e2ab44a861d6b18ff16a79d032f8574cd?s=96&d=mm&r=pg","width":96,"height":96,"caption":"NeoSmart Technologies"}},{"@type":"WebPage","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#webpage","url":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/","name":"Meet $, your new best friend for WSL | The NeoSmart Files","description":"We've raved about Microsoft's latest take on a Linux subsystem for Windows, this time in the form of the oddly-dubbed \"Bash on Ubuntu on Windows\" Windows Subsystem for Linux \u2014 herein and forever after referred to only as WSL for the sake of our collective sanity \u2014 but as awesome as being able to type","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/neosmart.net\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#breadcrumblist"},"author":{"@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author"},"creator":{"@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1.png","@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#mainImage","width":512,"height":512},"primaryImageOfPage":{"@id":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/#mainImage"},"datePublished":"2017-04-24T20:41:03-05:00","dateModified":"2017-04-25T13:28:20-05:00"},{"@type":"WebSite","@id":"https:\/\/neosmart.net\/blog\/#website","url":"https:\/\/neosmart.net\/blog\/","name":"The NeoSmart Files","description":"Recovery software and more","inLanguage":"en-US","publisher":{"@id":"https:\/\/neosmart.net\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"3989","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-23 20:04:59","updated":"2026-01-10 22:15:36","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/neosmart.net\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/neosmart.net\/blog\/category\/software\/\" title=\"Software\">Software<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMeet $, your new best friend for WSL\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/neosmart.net\/blog\/"},{"label":"Software","link":"https:\/\/neosmart.net\/blog\/category\/software\/"},{"label":"Meet $, your new best friend for WSL","link":"https:\/\/neosmart.net\/blog\/meet-your-new-best-friend-for-wsl\/"}],"jetpack_shortlink":"https:\/\/wp.me\/p4xDa-12l","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/RunInBash1.png","_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/3989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/comments?post=3989"}],"version-history":[{"count":5,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/3989\/revisions"}],"predecessor-version":[{"id":3997,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/3989\/revisions\/3997"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media\/3993"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=3989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=3989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=3989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}