I found that the "bash for ubuntu for windows" installed on my laptop cannot load the command history once I reboot the "bash for ubuntu for windows".
More precisely, if I open the terminal, and input some commands, then all commands I inputted in this terminal session can be found by the arrow keys. But if I close (by clicking the "x" on the up right corner) the terminal and reopen it, I cannot find any command I typed before by the arrow keys.
Does anyone have any ideas about this?
Thank you very much.
You need to leave the shell by typing exit
or Ctrl+d rather than just closing the window. exit
will write the history implicitly, you can explicitly trigger a history write with history -w
at any time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With