{"id":3524,"date":"2020-03-29T22:58:26","date_gmt":"2020-03-29T21:58:26","guid":{"rendered":"https:\/\/www.toobusyto.org.uk\/tooBusy\/?p=3524"},"modified":"2020-03-29T22:58:26","modified_gmt":"2020-03-29T21:58:26","slug":"macos-keyboard-shortcuts-for-terminal-users","status":"publish","type":"post","link":"https:\/\/www.toobusyto.org.uk\/tooBusy\/2020\/03\/29\/macos-keyboard-shortcuts-for-terminal-users\/","title":{"rendered":"MacOS Keyboard Shortcuts for Terminal Users"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Despite its reputation for flashy graphics, macOS has a number of nifty features and shortcuts for terminal users. Here are some of my favourite keyboard shortcuts within the Terminal application itself:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u21e7\u2318a (&#8220;shift-cmd-a&#8221;) to copy the output of the last command.<\/li><li>\u21e7\u2318v (&#8220;shift-cmd-v&#8221;) to paste the currently selected text.<\/li><li>\u2303\u2318v (&#8220;control-cmd-v&#8221;) to paste <em>escaped<\/em> text.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The following keyboard shortcuts work in other applications:  <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u2325\u2318c (&#8220;option-cmd-c&#8221;) in Finder will copy the path to the selected file(s) (via <a href=\"https:\/\/twitter.com\/scriptingosx\/status\/1243257489107402755\">@scriptingosx<\/a>).<\/li><li>\u21e7\u2318.  (&#8220;shift-cmd-fullstop&#8221;) toggles <code>show hidden files<\/code>, even in file open\/save dialogs (via <a href=\"https:\/\/twitter.com\/howardnoakley\/status\/1243220513528459265\">@howardnoakley<\/a>).<\/li><li>\u2303t (&#8220;control-t&#8221;) transposes the two characters to the left of the cursor (via <a href=\"https:\/\/twitter.com\/eWhizz\/status\/1243355352818573312\">@eWhizz<\/a>).<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">While testing the copy &amp; paste shortcuts in this post, I also discovered\u2014after 15 years of being a Mac user\u2014that Finder has the ability to show the current contents of the clipboard (Edit\u2192Show Clipboard).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Despite its reputation for flashy graphics, macOS has a number of nifty features and shortcuts for terminal users. Here are some of my favourite keyboard shortcuts within the Terminal application itself: \u21e7\u2318a (&#8220;shift-cmd-a&#8221;) to copy the output of the last command. \u21e7\u2318v (&#8220;shift-cmd-v&#8221;) to paste the currently selected text. \u2303\u2318v (&#8220;control-cmd-v&#8221;) to paste escaped text. &hellip; <a href=\"https:\/\/www.toobusyto.org.uk\/tooBusy\/2020\/03\/29\/macos-keyboard-shortcuts-for-terminal-users\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MacOS Keyboard Shortcuts for Terminal Users&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3524","post","type-post","status-publish","format-standard","hentry","category-apple"],"_links":{"self":[{"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/posts\/3524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/comments?post=3524"}],"version-history":[{"count":14,"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/posts\/3524\/revisions"}],"predecessor-version":[{"id":3541,"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/posts\/3524\/revisions\/3541"}],"wp:attachment":[{"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/media?parent=3524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/categories?post=3524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.toobusyto.org.uk\/tooBusy\/wp-json\/wp\/v2\/tags?post=3524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}