{"id":1611,"date":"2019-01-16T07:58:46","date_gmt":"2019-01-16T07:58:46","guid":{"rendered":"https:\/\/scunster.co.uk\/?p=1611"},"modified":"2019-01-16T07:58:46","modified_gmt":"2019-01-16T07:58:46","slug":"delete-specific-items-from-history-in-shall-bash","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1611","title":{"rendered":"Delete specific items from history in shall \/ bash"},"content":{"rendered":"<p>If you want to remove one or more items from the shell history (list of commands that appear when you press the up arrow) do the following<\/p>\n<p>First lets open the shell history and get the line ID of the item(s) we want to remove<\/p>\n<pre>history<\/pre>\n<p>Find the ID of the line(s) you want to remove, lets say for this example it&#8217;s on lines 324, 305 &#038; 307<br \/>\nNow, issue the following command with line ID&#8217;s separated by spaces<\/p>\n<pre>history -d 324 305 307<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you want to remove one or more items from the shell history (list of commands that appear when you press the up arrow) do the following First lets open the shell history and get the line ID of the item(s) we want to remove history Find the ID of the line(s) you want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[97,318,455,96],"class_list":["post-1611","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bash","tag-delete","tag-history","tag-shell"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1611"}],"version-history":[{"count":1,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1611\/revisions"}],"predecessor-version":[{"id":1612,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1611\/revisions\/1612"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}