{"id":1077,"date":"2021-03-18T12:19:00","date_gmt":"2021-03-18T10:19:00","guid":{"rendered":"https:\/\/www.boettrich.info\/blog\/?p=1077"},"modified":"2021-03-18T19:52:04","modified_gmt":"2021-03-18T17:52:04","slug":"truenas-csh-delete-entry-in-history","status":"publish","type":"post","link":"https:\/\/www.boettrich.info\/blog\/beitrag\/truenas-csh-delete-entry-in-history\/","title":{"rendered":"Truenas CSH &#8211; Delete Entry in History"},"content":{"rendered":"\n<p>Today i wanted to delete some lines from my shell history in a TrueNAS jail as i exported some vars with sensible information. <\/p>\n\n\n\n<p>As i do this in bash on a linux system with the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>history -d IndexOfEntry<\/code> <\/code><\/pre>\n\n\n\n<p>i fired this up in the csh and it &#8230;. did not work :-(<\/p>\n\n\n\n<p>The history command in csh does not seem to have a index delete function &#8230;.<\/p>\n\n\n\n<p>After a quick search on the net someone came up with this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>history -S             # saves the current history\nnano ~\/.history        # edit the history file with your\n                         favourite editor and delete the \n                         appropriate entries\nhistory -c             # clear the history\nhistory -L             # load the edited history<\/code><\/pre>\n\n\n\n<p>This worked like a charm and the passwords are gone from the history.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today i wanted to delete some lines from my shell history in a TrueNAS jail as i exported some vars with sensible information. As i do this in bash on a linux system with the command i fired this up in the csh and it &#8230;. did not work :-( The history command in csh&hellip;&nbsp;<a href=\"https:\/\/www.boettrich.info\/blog\/beitrag\/truenas-csh-delete-entry-in-history\/\" rel=\"bookmark\">Weiterlesen &raquo;<span class=\"screen-reader-text\">Truenas CSH &#8211; Delete Entry in History<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1,6,40],"tags":[],"class_list":["post-1077","post","type-post","status-publish","format-standard","hentry","category-beitrag","category-technik","category-truenas"],"_links":{"self":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/comments?post=1077"}],"version-history":[{"count":7,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1077\/revisions"}],"predecessor-version":[{"id":1131,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1077\/revisions\/1131"}],"wp:attachment":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/media?parent=1077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/categories?post=1077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/tags?post=1077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}