{"id":673,"date":"2009-08-07T10:47:53","date_gmt":"2009-08-07T15:47:53","guid":{"rendered":"http:\/\/www.ashleyit.com\/blogs\/brentashley\/?p=673"},"modified":"2009-08-07T10:47:53","modified_gmt":"2009-08-07T15:47:53","slug":"gnome-equivalent-of-windows-start-command","status":"publish","type":"post","link":"https:\/\/ashleyit.com\/blogs\/brentashley\/2009\/08\/07\/gnome-equivalent-of-windows-start-command\/","title":{"rendered":"Gnome equivalent of Windows &#8216;start&#8217; command"},"content":{"rendered":"<p>Being the command-line type of guy that I am, in the Windows world, I will often find myself at a CMD prompt  wanting to start up Windows Explorer in the current directory, run a file with its associated program, or start a browser and send it to a URL.<\/p>\n<p>In Windows, one uses the &#8216;start&#8217; command to do this.  It is essentially like typing something into the &#8216;Run&#8217; dialog from the Start menu.  If you specify a URL, it starts up your browser at that page.  If you specify a path to a local directory or a UNC to a share, it will start up Windows Explorer with that target.  If you specify a file whose extension is associated with a program, it will start up in that program.<\/p>\n<p>Now that I have been using Ubuntu as my main OS for a couple of years, I have found that you can do the same thing in Gnome with the command &#8216;gnome-open&#8217;.  I even went so far as to alias it to &#8216;go&#8217; by putting the following line in my ~\/.bashrc file:<\/p>\n<p><code>alias go='gnome-open'<\/code><\/p>\n<p>Then it is a simple matter of using &#8216;go&#8217; to do all sorts of things:<\/p>\n<p>Open a pdf in Document Viewer:<\/p>\n<p><code># go document.pdf<\/code><\/p>\n<p>Open a file browser in the current directory:<\/p>\n<p><code># go .<\/code><\/p>\n<p>Open a URL:<\/p>\n<p><code># go http:\/\/www.google.com<\/code><\/p>\n<p>Compose an email:<\/p>\n<p><code># go mailto:someone@example.com<\/code><\/p>\n<p>Search for all the people who have blogged about this very topic:<\/p>\n<p><code># go 'http:\/\/www.google.ca\/search?q=gnome-open'<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Being the command-line type of guy that I am, in the Windows world, I will often find myself at a CMD prompt wanting to start up Windows Explorer in the current directory, run a file with its associated program, or start a browser and send it to a URL. In Windows, one uses the &#8216;start&#8217; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","footnotes":""},"categories":[1],"tags":[42,41,40,31],"class_list":["post-673","post","type-post","status-publish","format-standard","hentry","category-blather","tag-command-line","tag-gnome","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/posts\/673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/comments?post=673"}],"version-history":[{"count":0,"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/posts\/673\/revisions"}],"wp:attachment":[{"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/media?parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/categories?post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ashleyit.com\/blogs\/brentashley\/wp-json\/wp\/v2\/tags?post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}