The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 35,828β€…    Votes:  12β€…    βœ… Solution
Tags: command-line   bash   bash-history  
Link: πŸ” See Original Question on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/885531
Title: Half of bash history is missing
ID: /2017/02/20/Half-of-bash-history-is-missing
Created: February 20, 2017    Edited:  April 13, 2017
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


The other night I was reading AU Q&A and used a bash command:

inxi -????

Problem is today I don’t remember characters comprising ????. I want to put the command and parameters into my documentation spreadsheet. Based on an this answer (How to recall history in teminal) I used this command:

$ cat .bash_history | grep inxi
inxi -b
sudo apt install inxi
inxi -b

However the command I want isn’t there even though the history goes far back. I’ve used the inxi commands many times in the terminal since that old history but none of is showing up.

I’ve also tried Ctrl+R+inxi without any luck. Because I open multiple terminal windows all the time is history tied to a specific window?

Is there a different way to grep bash history file(s)?

Note that I do not prefix terminal commands with a Space Bar such that they are supressed from history.

⇧ How to update kernel to the latest mainline version without any Distro-upgrade? How to cycle through grub background images every boot  β‡©