history

History in terminal or session will be save to ~\/.bash_profile until you logout from login shell

if a command terminated in unexpected cases, it will not save in history

We can write history in terminalA directly

$(history -a)

And read history in terminalB

$(history -n)

then all history in your terminals are Synchronized.

Last updated

Was this helpful?