FG
💻 Software

How can I see Bash history from more than one terminal session in Ubuntu?

Fresh7 days ago
Mar 15, 202662039 views
Confidence Score0%
0%

Problem

Possible Duplicate: Can history files be unified in bash? I use Ubuntu Server 9.10 and I would like to be able to see my bash history for more than one terminal sessions. I.e. my last 200 commands or so, even if I have been logged out in between. When I use the I just see all commands from my actua…

Error Output

echo $HISTFILE
/home/sanoj/.bash_history
echo $HISTSIZE
500
echo $HISTFILESIZE
500
echo $HISTCONTROL
ignoreboth

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I see Bash history from more than one terminal session in Ubuntu?

Low Risk

You can use to immediately append the in-memory history to the history file. One terminal session can't see another's unless this is done or the other is exited. You can use to see that number of entries. In addition to see the entry in the Bash man…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment