{"id":279,"date":"2025-01-05T13:34:10","date_gmt":"2025-01-05T18:34:10","guid":{"rendered":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=279"},"modified":"2025-01-05T13:34:10","modified_gmt":"2025-01-05T18:34:10","slug":"adjust-history-file-to-erase-duplicates-and-set-larger-capacity","status":"publish","type":"post","link":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=279","title":{"rendered":"Adjust History file to erase duplicates and set larger capacity"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>vim .bashrc<\/code><\/pre>\n\n\n\n<p>look for the following lines and adjust HISTCONTROL, HISTSIZE, and HISTFILESIZE accordingly:<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#don't put duplicate lines or lines starting with space in the history.\n#See bash(1) for more options<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>HISTCONTROL=ignoreboth:erasedups<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#append to the history file, don't overwrite it<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>shopt -s histappend<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#for setting history length see HISTSIZE and HISTFILESIZE in bash(1)<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>HISTSIZE=9999<br>HISTFILESIZE=9999<\/code><\/pre>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>look for the following lines and adjust HISTCONTROL, HISTSIZE, and HISTFILESIZE accordingly:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,13],"tags":[],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-file-management","category-os-maintenance"],"_links":{"self":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279"}],"version-history":[{"count":1,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}