79407803

Date: 2025-02-03 04:11:22
Score: 0.5
Natty:
Report link

The accepted answer will modify your current shell session's history.

A better solution which isolates the running shell is this:

(history -cr "$path_to_hist_file" ; history)

PS: I also made a gist to showcase how to display a file from a remote host through SSH singlehandedly. It adds a bit more complications. Here it is for interested people:

Display History of Remote Machine through SSH

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
Posted by: adamency