{"id":1334,"date":"2019-03-25T08:15:21","date_gmt":"2019-03-25T13:15:21","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1334"},"modified":"2019-03-25T08:18:15","modified_gmt":"2019-03-25T13:18:15","slug":"bash-history-plus-comment","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/bash-history-plus-comment\/","title":{"rendered":"Bash History Plus Comment"},"content":{"rendered":"\n

If you like using Control-R in bash to find previous commands here is a useful tip. You can add a comment to a command and then when you use Control-R searching by typing you can find it by your comment. Example I use apt update. Run command including your comment (shell will ignore the comment of course). Then when Control-R searching type your string you used in the comment.<\/p>\n\n\n

\n\u00a0# apt update ; apt upgrade #quickupdate\n<\/pre><\/div>\n\n\n

Now hit Control-R and type to search \"quick\".<\/p>\n\n\n

\n(reverse-i-search)`quick': apt update ; apt upgrade #quickupdate\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"

If you like using Control-R in bash to find previous commands here is a useful tip. You can add a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1334","post","type-post","status-publish","format-standard","hentry","category-bash"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1334"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1334\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}