{"id":239,"date":"2012-12-01T15:11:47","date_gmt":"2012-12-01T15:11:47","guid":{"rendered":"http:\/\/www.timokorthals.de\/?p=239"},"modified":"2016-12-28T00:01:05","modified_gmt":"2016-12-27T23:01:05","slug":"tuning-the-linux-history","status":"publish","type":"post","link":"http:\/\/www.timokorthals.de\/?p=239","title":{"rendered":"Tuning the Linux history"},"content":{"rendered":"<p>Ever wondered why the Linux history only has a few entries, or why history is always overwritten, when you use more than one shell? Just append this few lines to the <strong>~\/.bashrc<\/strong> to realy save every entry you ever have made to your shell:<\/p>\n<pre class=\"lang:sh decode:true \" >\r\n# change the format of the history command with date and time export\r\nHISTTIMEFORMAT='%F %T '\r\n<\/pre>\n<pre class=\"lang:sh decode:true \" >\r\n# Append any command from any shell to the history\r\n# Note: Appending only happens when you close the shell\r\nshopt -s histappend\r\n<\/pre>\n<pre class=\"lang:sh decode:true \" >\r\n# Delete the the sizerestricton of the history\r\nHISTFILESIZE=\r\n<\/pre>\n<p>Here is also a nice post for <a title=\"15 Examples To Master Linux Command Line History\" href=\"http:\/\/www.thegeekstuff.com\/2008\/08\/15-examples-to-master-linux-command-line-history\/\" target=\"_blank\">working with the Linux history<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wondered why the Linux history only has a few entries, or why history is always overwritten, when you use more than one shell? Just append this few lines to the ~\/.bashrc to realy save every entry you ever have made to your shell: # change the format of the history command with date and &hellip; <a href=\"http:\/\/www.timokorthals.de\/?p=239\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Tuning the Linux history<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=\/wp\/v2\/posts\/239"}],"collection":[{"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":2,"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":396,"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions\/396"}],"wp:attachment":[{"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.timokorthals.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}