Raspberry Pi: Never Forget Commands | Command History

Опубликовано: 15 Июль 2024
на канале: Arcade Spinner
82
3

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


Смотрите видео Raspberry Pi: Never Forget Commands | Command History онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Arcade Spinner 15 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 82 раз и оно понравилось 3 людям.