Forgot a Raspberry Pi command? Can't find a recent command in terminal or command line history? Learn how to use previous commands from your Raspberry Pi's terminal/SSH/command line history using Reverse-i-search (bck-i-search) on the Raspberry Pi! I also show you how you view previous commands executed on the Raspberry Pi's SSH or terminal history by opening .bash_history or .zsh_history files. I also cover how to increase the size of command history memory (HISTSIZE)/files (HISTFILESIZE).
=== Commands Used ===
sudo nano ~/.zsh_history (For Zsh command history)
sudo nano ~/.bash_history (For Zsh command history)
sudo nano ~/.bashrc (For editing bash config to increase HISTSIZE/HISTFILESIZE)
sudo nano ~/.zshrc (For editing bash config to increase HISTSIZE/HISTFILESIZE)
Don't forget to use Reverse-i-Search: Ctrl + R
#raspberrypi #raspberrypi5 #raspberrypiprojects #raspberrypi4
Watch video Raspberry Pi: Never Forget Commands | Command History online without registration, duration hours minute second in high quality. This video was added by user Arcade Spinner 15 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 82 once and liked it 3 people.