{"id":28,"date":"2018-07-25T12:03:50","date_gmt":"2018-07-25T08:03:50","guid":{"rendered":"http:\/\/kidds.co.za\/?p=28"},"modified":"2018-07-25T12:25:09","modified_gmt":"2018-07-25T08:25:09","slug":"useful-command-line-keyboard-shortcuts","status":"publish","type":"post","link":"https:\/\/kidds.co.za\/index.php\/2018\/07\/25\/useful-command-line-keyboard-shortcuts\/","title":{"rendered":"Useful Command Line Keyboard Shortcuts"},"content":{"rendered":"<figure id=\"figure-article_2-0\" class=\"comp figure-article figure-landscape\">\n<div class=\"figure-media\">\n<div class=\"img-placeholder\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/www.lifewire.com\/thmb\/I9N-yClUQw7sENnFCYAmUewTx1E=\/768x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/keyboardshortcuts-56a5aaae3df78cf772895278.png\" srcset=\"https:\/\/www.lifewire.com\/thmb\/J0Q4SXGX5ZoXEn5saLLzAVa6WNk=\/300x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/keyboardshortcuts-56a5aaae3df78cf772895278.png 300w, https:\/\/www.lifewire.com\/thmb\/phj_95PgXv1S7xuGIjpYQcYKeK8=\/417x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/keyboardshortcuts-56a5aaae3df78cf772895278.png 417w, https:\/\/www.lifewire.com\/thmb\/ricZWzi1o_DcKvasZZCEC6TT88U=\/534x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/keyboardshortcuts-56a5aaae3df78cf772895278.png 534w, https:\/\/www.lifewire.com\/thmb\/I9N-yClUQw7sENnFCYAmUewTx1E=\/768x0\/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)\/keyboardshortcuts-56a5aaae3df78cf772895278.png 768w\" alt=\"Linux Keyboard Shortcuts\" width=\"626\" height=\"352\" data-expand=\"300\" \/><\/div>\n<p>&nbsp;<\/p>\n<\/div><figcaption class=\"figure-article-caption\">\u00a0Linux Keyboard Shortcuts.<\/figcaption><\/figure>\n<p>The following keyboard shortcuts are incredibly useful and will save you loads of time:<\/p>\n<ul>\n<li>CTRL + U &#8211; Cuts text up until the cursor.<\/li>\n<li>CTRL + K &#8211; Cuts text from the cursor until the end of the line<\/li>\n<li>CTRL + Y &#8211; Pastes text<\/li>\n<li>CTRL + E &#8211; Move cursor to end of line<\/li>\n<li>CTRL + A &#8211; Move cursor to the beginning of the line<\/li>\n<li>ALT + F &#8211; Jump forward to next space<\/li>\n<li>ALT + B &#8211; Skip back to previous space<\/li>\n<li>ALT + Backspace &#8211; Delete the previous word<\/li>\n<li>CTRL + W &#8211; Cut word behind cursor<\/li>\n<li>Shift + Insert &#8211; Pastes text into terminal<\/li>\n<\/ul>\n<p>Just so that the commands above make sense look at the next line of text.<\/p>\n<blockquote><p>sudo apt-get install programname<\/p><\/blockquote>\n<p>As you can see I have a spelling error and for the command to work I would need to change &#8220;intall&#8221; to &#8220;install&#8221;.<\/p>\n<p>Imagine the cursor is at the end of the line. There are various ways to get back to the word install to change it.<\/p>\n<p>I could press ALT + B twice which would put the cursor in the following position (denoted by the ^ symbol):<\/p>\n<blockquote><p>sudo apt-get^intall programname<\/p><\/blockquote>\n<p>Now you could press the cursor key and insert the &#8221;s&#8217; into install.<\/p>\n<p>Another useful command is &#8220;shift + insert&#8221; especially If you need to copy text from a browser into the terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u00a0Linux Keyboard Shortcuts. The following keyboard shortcuts are incredibly useful and will save you loads of time: CTRL + U &#8211; Cuts text up until the cursor. CTRL + K &#8211; Cuts text from the cursor until the end of the line CTRL + Y &#8211; Pastes text CTRL + E &#8211; Move cursor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":2,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":54,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions\/54"}],"wp:attachment":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}