Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
You can use history-ahistory -a to append the current session's history to the histfile, then use history-rhistory -r on the other terminals to read the histfile.
You can use history-a to append the current session's history to the histfile, then use history-r on the other terminals to read the histfile.
You can use history -a to append the current session's history to the histfile, then use history -r on the other terminals to read the histfile.