Retrieve a command from another, remote bash session
Posted
by
Oli
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Oli
Published on 2012-11-29T23:06:53Z
Indexed on
2012/11/29
23:19 UTC
Read the original article
Hit count: 392
So I was on our laptop, SSH'd into my desktop, dropping some mad bashfu skill. There was one command I ran which was particularly skilful. I'm now about minute walk from the laptop and I really want that command here on my desktop, so that I can run it again.
I realise I've already spent more time that it would have taken to rewrite it, but this has raised a common issue I have with bash history. I know I can force it to update each command, but I haven't... so:
Is there any way to get a history from a different, live bash session?
© Ask Ubuntu or respective owner