My current screen
session has 12 open windows on it. It's been running for weeks… I know I executed an ImageMagick convert
command in one of these 12 screen windows sometime last week… is there any way I can easily search through the Bash history of all 12 instances, without closing them or running history | grep convert
in all 12 screens?
Bash – Search History Across Multiple Screen Windows
bashcommand historygnu-screen
Best Answer
You can run
history -a; history -c
in all windows to save the history. And thenhistory -r
to refresh it.To solve it more permanently add this to your
.bashrc
: