bash: history - Write the contents of the current shell history to the history file.
-
Take into account the main readme for this section. README first.
Note: You will lose all the previous commands saved to your history file.
$ history -w
© Lightnetics 2024