{"id":438,"date":"2020-10-15T02:44:00","date_gmt":"2020-10-15T06:44:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=438"},"modified":"2021-01-01T01:00:56","modified_gmt":"2021-01-01T06:00:56","slug":"ksh-history-and-re-running-commands","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/ksh-history-and-re-running-commands\/","title":{"rendered":"ksh: History and re-running commands"},"content":{"rendered":"\n<p>To view a listing of commands you entered in ksh, type<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ history<\/code><\/pre>\n\n\n\n<p>To re-run the last command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ r<\/code><\/pre>\n\n\n\n<p>To re-run command by its number<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ r number<\/code><\/pre>\n\n\n\n<p>To re-run command by the starting text of the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ r string<\/code><\/pre>\n\n\n\n<p><strong>Examples<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ r\n$ r 34\n$ r hist<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To view a listing of commands you entered in ksh, type To re-run the last command To re-run command by its number To re-run command by the starting text of the command Examples<\/p>\n","protected":false},"author":1,"featured_media":496,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=438"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/438\/revisions"}],"predecessor-version":[{"id":439,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/438\/revisions\/439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media\/496"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}