{"id":392,"date":"2021-07-25T23:52:38","date_gmt":"2021-07-25T18:22:38","guid":{"rendered":"https:\/\/blog.al-zakirah202.familyds.com\/?p=392"},"modified":"2021-07-26T00:18:42","modified_gmt":"2021-07-25T18:48:42","slug":"useful-keyboard-shortcuts-for-shells-command-line","status":"publish","type":"post","link":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/2021\/07\/25\/useful-keyboard-shortcuts-for-shells-command-line\/","title":{"rendered":"Useful Keyboard Shortcuts for Shell&#8217;s Command Line"},"content":{"rendered":"<p>I prefer the command line in a shell terminal to perform various tasks including but not limited to file\/directory creation, file\/directory deletion, listing the contents of the directory, going or changing directory, modify the read\/write &amp; ownership privileges..etc. <!--more-->The unix shell is packed with many commands which makes your life easy for daily activities. \u00a0In this post, I would like to discuss some of the keyboard shortcuts which we can use on the command line. \u00a0Although, I am taking tcsh shell for the discussion but most of these shortcuts should be applicable to other shells as well.<\/p>\n<h3>Shortcuts with &lt;CTRL&gt; key<\/h3>\n<ul>\n<li><em>&lt;CTRL&gt; + l key <\/em>combination\u00a0causes the screen to be cleared. \u00a0We can use this to let the command line go to the beginning of the window and have the screen cleared!\n<div id=\"attachment_393\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-393\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.34.53-PM-1024x541.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-393\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.34.53-PM-1024x541.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.34.53-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.34.53-PM-768x406.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.34.53-PM-1536x812.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.34.53-PM-2048x1082.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-393\" class=\"wp-caption-text\">Terminal before performing clear screen using &lt;CTRL&gt;<ctrl>+l<\/ctrl><\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_394\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-394\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.36.51-PM-1024x539.png\" alt=\"\" width=\"800\" height=\"421\" class=\"size-large wp-image-394\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.36.51-PM-1024x539.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.36.51-PM-300x158.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.36.51-PM-768x405.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.36.51-PM-1536x809.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.36.51-PM-2048x1079.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-394\" class=\"wp-caption-text\">Terminal after clearing the screen using &lt;CTRL&gt;<ctrl>+l<\/ctrl><\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + c key\u00a0<\/em>combination can be used to abort a running command. \u00a0Very useful when you want the running command to be aborted immediately\n<div id=\"attachment_395\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-395\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.41.47-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-395\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.41.47-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.41.47-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.41.47-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.41.47-PM-1536x814.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.41.47-PM-2048x1085.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-395\" class=\"wp-caption-text\">Aborting sleep command using &lt;CTRL&gt;<ctrl>+c key sequence<\/ctrl><\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + z key<\/em>\u00a0combination suspends a running command. \u00a0We use this when you don&#8217;t want the running command to abort but rather get suspended for some time. \u00a0You can resume the execution of the command using the <em>&#8220;fg&#8221; (foreground)<\/em> or <em>&#8220;bg&#8221; (background)<\/em> commands\n<div id=\"attachment_396\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-396\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.45.35-PM-1024x542.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-396\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.45.35-PM-1024x542.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.45.35-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.45.35-PM-768x406.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.45.35-PM-1536x812.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.45.35-PM-2048x1083.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-396\" class=\"wp-caption-text\">Sleep command getting suspended using &lt;CTRL&gt;\u00a0<ctrl>+ z key sequence<\/ctrl><\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_397\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-397\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.47.35-PM-1024x540.png\" alt=\"\" width=\"800\" height=\"422\" class=\"size-large wp-image-397\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.47.35-PM-1024x540.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.47.35-PM-300x158.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.47.35-PM-768x405.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.47.35-PM-1536x810.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.47.35-PM-2048x1080.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-397\" class=\"wp-caption-text\">Suspended Sleep command getting resumed using the &#8220;fg&#8221; command<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + a key<\/em> sequence will take the cursor to the beginning of the command line. \u00a0This is very useful when you want to go back to the beginning of the command (for example to correct a typo..etc) without having to use the arrow keys\n<div id=\"attachment_398\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-398\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-1024x541.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-398\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-1024x541.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-768x406.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-1536x812.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-2048x1083.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-398\" class=\"wp-caption-text\">Terminal showing the cursor is at end of the command line text<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_399\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-399\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.52.37-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-399\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.52.37-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.52.37-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.52.37-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.52.37-PM-1536x814.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.52.37-PM-2048x1085.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-399\" class=\"wp-caption-text\">Terminal showing the cursor at the beginning of the command line using &lt;CTRL&gt;<ctrl>+a key<\/ctrl><\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + e key<\/em> sequence causes the cursor to move to the end of the command line. \u00a0Again very useful if you like to move the cursor to the end without pressing the arrow keys\n<div id=\"attachment_400\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-400\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.56.02-PM-1024x542.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-400\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.56.02-PM-1024x542.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.56.02-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.56.02-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.56.02-PM-1536x813.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.56.02-PM-2048x1084.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-400\" class=\"wp-caption-text\">Terminal showing the cursor at the end of the command line after using &lt;CTRL&gt;\u00a0<ctrl>+ e key<\/ctrl><\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + b key<\/em> sequence emulates left arrow and causes the cursor to move left one character<\/li>\n<li><em>&lt;CTRL&gt; + f key\u00a0<\/em>sequence emulates right arrow and causes the cursor to move right one character<\/li>\n<li><em>&lt;CTRL&gt; + u<\/em> <em>key<\/em>\u00a0sequence clears the entire command line text and stores it in an internal buffer. \u00a0The contents of the internal buffer can then be pasted using the <em>&lt;CTRL&gt; + y<\/em> key sequence\n<div id=\"attachment_398\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-398\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-1024x541.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-398\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-1024x541.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-768x406.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-1536x812.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-10.51.20-PM-2048x1083.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-398\" class=\"wp-caption-text\">Terminal showing the cursor is at end of the command line text<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_401\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-401\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.03.57-PM-1024x542.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-401\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.03.57-PM-1024x542.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.03.57-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.03.57-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.03.57-PM-1536x813.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.03.57-PM-2048x1085.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-401\" class=\"wp-caption-text\">Terminal showing that the command line text is completely removed after &lt;CTRL&gt; + u key sequence<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_402\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-402\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.05.36-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"wp-image-402 size-large\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.05.36-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.05.36-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.05.36-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.05.36-PM-1536x815.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.05.36-PM-2048x1086.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-402\" class=\"wp-caption-text\">Terminal showing the contents of the internal buffer being pasted after &lt;CTRL&gt; + y key sequence<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + h key<\/em>\u00a0sequence deletes one character to the left of the cursor. \u00a0It&#8217;s similar to the &lt;Backspace&gt; key\n<div id=\"attachment_403\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-403\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-1024x542.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-403\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-1024x542.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-1536x813.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-2048x1085.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-403\" class=\"wp-caption-text\">Terminal showing cursor at the letter &#8216;a&#8217;<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_404\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-404\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.13.51-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-404\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.13.51-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.13.51-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.13.51-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.13.51-PM-1536x814.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.13.51-PM-2048x1085.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-404\" class=\"wp-caption-text\">Terminal after key sequence &lt;CTRL&gt; + h (letter &#8216;e&#8217; is deleted)<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + d<\/em> <em>key\u00a0<\/em>sequence deletes one character at the cursor. \u00a0It emulates the &lt;DEL&gt; key\n<div id=\"attachment_405\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-405\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.15.34-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-405\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.15.34-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.15.34-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.15.34-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.15.34-PM-1536x814.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.15.34-PM-2048x1086.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-405\" class=\"wp-caption-text\">Terminal after the key sequence &lt;CTRL&gt; + d (letter &#8216;a&#8217; at the cursor got deleted)<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;CTRL&gt; + t key<\/em> sequence causes the character at the cursor to be swapped with the character to the left of the cursor\n<div id=\"attachment_403\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-403\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-1024x542.png\" alt=\"\" width=\"800\" height=\"423\" class=\"size-large wp-image-403\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-1024x542.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-1536x813.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.12.37-PM-2048x1085.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-403\" class=\"wp-caption-text\">Terminal showing cursor at the letter &#8216;a&#8217;<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_407\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-407\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.22.30-PM-1024x545.png\" alt=\"\" width=\"800\" height=\"426\" class=\"size-large wp-image-407\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.22.30-PM-1024x545.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.22.30-PM-300x160.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.22.30-PM-768x409.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.22.30-PM-1536x818.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.22.30-PM-2048x1090.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-407\" class=\"wp-caption-text\">Character &#8216;a&#8217; which was at the cursor got swapped with character &#8216;e&#8217; after &lt;CTRL&gt; + t key sequence<\/p><\/div>\n<p>&nbsp;<\/li>\n<\/ul>\n<h3>Shortcuts with &lt;Esc&gt; key<\/h3>\n<ul>\n<li><em>&lt;ESC&gt; + &lt;Backspace&gt; key<\/em>\u00a0sequence causes a complete word to be deleted to the left of the cursor. \u00a0Very useful if you want to delete a word rather than just one character. \u00a0The deleted word is stored in the internal buffer and can be pasted back using the &lt;CTRL&gt; + y key sequence.\n<div id=\"attachment_408\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-408\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.29.20-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-408\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.29.20-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.29.20-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.29.20-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.29.20-PM-1536x815.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.29.20-PM-2048x1087.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-408\" class=\"wp-caption-text\">Terminal showing the cursor at the beginning of the word &#8220;fft&#8221;<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_409\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-409\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.30.32-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-409\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.30.32-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.30.32-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.30.32-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.30.32-PM-1536x814.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.30.32-PM-2048x1086.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-409\" class=\"wp-caption-text\">Terminal showing the word &#8220;foreach&#8221; got deleted after &lt;ESC&gt; + &lt;Backspace&gt; key sequence<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;ESC&gt; + D key<\/em>\u00a0sequence causes a complete word to be deleted at the cursor. \u00a0Very useful if you want to delete a word rather than just one character. \u00a0The deleted word is stored in the internal buffer and can be pasted back using the &lt;CTRL&gt; + y key sequence\n<div id=\"attachment_410\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-410\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.32.53-PM-1024x544.png\" alt=\"\" width=\"800\" height=\"425\" class=\"size-large wp-image-410\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.32.53-PM-1024x544.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.32.53-PM-300x160.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.32.53-PM-768x408.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.32.53-PM-1536x817.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.32.53-PM-2048x1089.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-410\" class=\"wp-caption-text\">Terminal showing that the word &#8220;fft&#8221; at the cursor got deleted after &lt;ESC&gt; + &lt;D&gt; sequence<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;ESC&gt; + p key<\/em>\u00a0sequence causes the shell to recall the command which was executed before in the shell. \u00a0By pressing this key combination one can cycle through all the previous commands which were executed before. \u00a0Furthermore, if you enter the first few characters of the command which was executed before and then using the &#8216;&lt;ESC&gt; + p&#8217; key sequence then it recalls all the commands which got executed before matching those first few characters.\n<div id=\"attachment_411\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-411\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.40.15-PM-1024x543.png\" alt=\"\" width=\"800\" height=\"424\" class=\"size-large wp-image-411\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.40.15-PM-1024x543.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.40.15-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.40.15-PM-768x407.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.40.15-PM-1536x815.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.40.15-PM-2048x1086.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-411\" class=\"wp-caption-text\">Terminal showing letter &#8216;f&#8217; in the command line<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_412\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-412\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.41.02-PM-1024x545.png\" alt=\"\" width=\"800\" height=\"426\" class=\"size-large wp-image-412\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.41.02-PM-1024x545.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.41.02-PM-300x160.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.41.02-PM-768x408.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.41.02-PM-1536x817.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.41.02-PM-2048x1089.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-412\" class=\"wp-caption-text\">Terminal showing the previous command being recalled which has &#8216;f&#8217; in the beginning at the 1st application of &lt;ESC&gt; + p key<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_413\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-413\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.43.22-PM-1024x544.png\" alt=\"\" width=\"800\" height=\"425\" class=\"size-large wp-image-413\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.43.22-PM-1024x544.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.43.22-PM-300x159.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.43.22-PM-768x408.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.43.22-PM-1536x815.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-25-at-11.43.22-PM-2048x1087.png 2048w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-413\" class=\"wp-caption-text\">Terminal showing the previous command being recalled which has &#8216;f&#8217; in the beginning at the 2nd application of &lt;ESC&gt; + p key<\/p><\/div>\n<p>&nbsp;<\/li>\n<li><em>&lt;ESC&gt; + b key<\/em> sequence \u00a0causes the cursor to move left one word<\/li>\n<li><em>&lt;ESC&gt; + f key\u00a0<\/em>sequence causes the cursor to move right one word<\/li>\n<\/ul>\n<p>Please feel free to provide feedback and comment. \u00a0And don&#8217;t forget to give \ud83d\udc4d if you like the post<\/p>\n<div id=\"emojics-root\"><\/div><div class=\"remoji_bar\"><div class=\"remoji_add_container\" data-remoji-id=\"392\" data-remoji-type=\"post\"><div class=\"remoji_add_icon\"><\/div><\/div><div class=\"remoji_error_bar\" data-remoji-id=\"392\" data-remoji-type=\"post\" style=\"display: none;\">Error happened.<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>I prefer the command line in a shell terminal to perform various tasks including but not limited to file\/directory creation, file\/directory deletion, listing the contents of the directory, going or changing directory, modify the read\/write &amp; ownership privileges..etc. Error happened.<\/p>\n","protected":false},"author":1,"featured_media":374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,16],"tags":[19],"class_list":["post-392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tcsh","category-terminal","tag-shortcuts"],"_links":{"self":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":8,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":421,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts\/392\/revisions\/421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/media\/374"}],"wp:attachment":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}