{"id":929,"date":"2017-11-10T16:56:08","date_gmt":"2017-11-10T15:56:08","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=929"},"modified":"2021-05-31T09:17:28","modified_gmt":"2021-05-31T08:17:28","slug":"terminal-console-keyboard-shortcuts","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/terminal-console-keyboard-shortcuts\/","title":{"rendered":"Terminal \/ Console Keyboard Shortcuts"},"content":{"rendered":"\n<p>Source:&nbsp;<a href=\"https:\/\/unix.stackexchange.com\/questions\/6\/what-are-your-favorite-command-line-features-or-tricks\">https:\/\/unix.stackexchange.com\/questions\/6\/what-are-your-favorite-command-line-features-or-tricks<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><kbd>Ctrl<\/kbd>+<kbd>U<\/kbd>\u00a0&#8211; Cut the current line<\/li><li><kbd>Ctrl<\/kbd>+<kbd>Y<\/kbd>\u00a0&#8211; Paste a line cut with\u00a0<kbd>Ctrl<\/kbd>+<kbd>U<\/kbd><\/li><li><kbd>Ctrl<\/kbd>+<kbd>L<\/kbd>\u00a0&#8211; Clear the screen and redraw the current line<\/li><li><kbd>Ctrl<\/kbd>+<kbd>G<\/kbd>\u00a0&#8211; Get a new line and abandon the current one<\/li><li>Ctrl+A to go to the beginning of the line,<\/li><li>Ctrl+E to go to the end of the line,<\/li><li>Ctrl-K to erase from the cursor to the end of the line.<\/li><li>CTRL+R for searching\/activating previously executed commands (the contents of ~\/.bash_history).<\/li><li>ALT+ .  to insert preceding line&#8217;s final parameter<\/li><\/ul>\n\n\n\n<p>Frequently used commands:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># execute last command as root\nsudo !!\n# move to previous dir \ncd -<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Source:&nbsp;https:\/\/unix.stackexchange.com\/questions\/6\/what-are-your-favorite-command-line-features-or-tricks Ctrl+U\u00a0&#8211; Cut the current line Ctrl+Y\u00a0&#8211; Paste a line cut with\u00a0Ctrl+U Ctrl+L\u00a0&#8211; Clear the screen and redraw the current line Ctrl+G\u00a0&#8211; Get a new line and abandon the current one Ctrl+A to go to the beginning of the line, Ctrl+E to go to the end of the line, Ctrl-K to erase from the cursor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-929","post","type-post","status-publish","format-standard","hentry","category-dotnet"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=929"}],"version-history":[{"count":2,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/929\/revisions"}],"predecessor-version":[{"id":5071,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/929\/revisions\/5071"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}