{"id":1191,"date":"2016-02-26T09:04:05","date_gmt":"2016-02-25T23:04:05","guid":{"rendered":"http:\/\/funwithstuff.com\/blog\/?p=1191"},"modified":"2016-02-26T09:04:05","modified_gmt":"2016-02-25T23:04:05","slug":"1191","status":"publish","type":"post","link":"https:\/\/funwithstuff.com\/blog\/1191\/","title":{"rendered":"Using the OS X Terminal"},"content":{"rendered":"<p>Inspired by and following on from <a href=\"http:\/\/www.imore.com\/how-use-terminal-mac-when-you-have-no-idea-where-start \">a useful article on iMore<\/a>, here are a few more tips on how to use the Terminal \u2014 if you ever need to:<\/p>\n<p>&#8211; Press Tab to autocomplete a path.<br \/>\n&#8211; Use Option-left and right arrows to move the cursor by word (this didn&#8217;t use to work but does now).<br \/>\n&#8211; Use up and down arrows to go back through your previous commands (all the way back to previous sessions).<br \/>\n&#8211; &#8220;sudo su&#8221; if you&#8217;re going to do a few things as the superuser.<br \/>\n&#8211; Dragging in files from the Finder to type their path is very handy.<br \/>\n&#8211; You need to escape spaces in filenames with , as in &#8220;My File&#8221;.<br \/>\n&#8211; It&#8217;s written in the article already, but recommended to always use &#8220;ls -la&#8221; to show all permissions and hidden files.<br \/>\n&#8211; &#8220;top&#8221; is the Terminal equivalent of Activity Monitor, handy for discovering process IDs.<br \/>\n&#8211; &#8220;kill -9&#8221; if something just won&#8217;t die.<br \/>\n&#8211; When navigating, ~ means your home directory, and \/ means root.<br \/>\n&#8211; Whatever you do, DO NOT type &#8220;rm -r \/*&#8221; because it wipes everything \u2014 at least, the files you have permission to.<br \/>\n&#8211; The &#8220;more&#8221; app is a good way to read longer text files.<br \/>\n&#8211; &#8220;chmod&#8221; for changing permissions.<br \/>\n&#8211; &#8220;dig&#8221; or &#8220;nslookup&#8221; for checking out websites.<br \/>\n&#8211; &#8220;vi&#8221; is a basic, powerful text editor, and knowing its basic commands can get you out of some sticky situations \u2014\u00a0but it&#8217;s weird.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inspired by and following on from a useful article on iMore, here are a few more tips on how to use the Terminal \u2014 if you ever need to: &#8211; Press Tab to autocomplete a path. &#8211; Use Option-left and right arrows to move the cursor by word (this didn&#8217;t use to work but does &hellip; <a href=\"https:\/\/funwithstuff.com\/blog\/1191\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using the OS X Terminal<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/posts\/1191"}],"collection":[{"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/comments?post=1191"}],"version-history":[{"count":0,"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/posts\/1191\/revisions"}],"wp:attachment":[{"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/media?parent=1191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/categories?post=1191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/funwithstuff.com\/blog\/wp-json\/wp\/v2\/tags?post=1191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}