IXON

Disable XON/XOFF software flow control for Linux (prevent Ctrl-S from freezing the terminal)

Disable XON/XOFF software flow control for Linux

This prevents the Ctrl+S shortcut from freezing the terminal. Also, the quick fix is to press Ctrl+Q.

Add the following to a shell startup script (such as ~/.bashrc or ~/.zshrc):

# Disable XON/XOFF flow control
stty -ixon

Apply (assume that you’re using zsh):

source ~/.zshrc

References

https://unix.stackexchange.com/questions/12107/how-to-unfreeze-after-accidentally-pressing-ctrl-s-in-a-terminal

Content Licensed under CC BY-SA 4.0. Code licensed under the MIT License.