panel 1: your shell has a history of the commands you ran some ways to access history: * press the up arrow * run history * search it with Ctrl-R (in bash/zsh) panel 2: how long does your shell store history for? in bash, the default is 500 commands (not enough!) in fish, the default is 256,000 commands if you're using bash, you might want to configure it to store more history panel 3: when does your shell save history? by default, bash and zsh only save history to a file when you exit the shell fish saves the history continuously panel 4: where is history stored? bash: .bash_history zsh: run echo $HISTFILE fish: mine is in ~/.local/share/fish/fish_history person (thinking): “sometimes I copy over my shell history when setting up a new computer!” panel 5: a useful history tool: atuin atuin lets you: * save unlimited history * search history more easily * save commands as soon as you run them * sync your history (optionally) panel 6: gotcha: history in zsh only shows 15 entries You can run history 0 to see all the history panel 7: commands that start with a space don't go in your history. good for passwords! (might depend on your shell's config)
https://cdn.masto.host/socialjvnsca/media_attachments/files/114/083/614/669/333/476/original/286bc1f4b097c725.png