This blog post is 16 years old! Most likely, its content is outdated. Especially if it's technical.
To some people it's obvious but I just learnt this now. It's bugged me several times where I've accidently pressed Ctrl-S and the terminal freezes. I had no idea what to do so I had to close the window with Alt-F4. This is extra annoying if you have a ssh session open.
What Ctrl-S does it that it freezes the output on the terminal. Ctrl-Q resumes it again. I can't think of a real usage for me for this but it's good to know if you accidently "freeze" your terminal.
- Previous:
- Encrypted files in Emacs 01 March 2005
- Next:
-
Good usage of drop-downs 05 March 2005
- Related by category:
- How to create-react-app with Docker 17 November 2017 Linux
- Be very careful with your add_header in Nginx! You might make your site insecure 11 February 2018 Linux
- Linux tip: du --max-depth=1 27 September 2007 Linux
- set -ex - The most useful bash trick of the year 31 August 2014 Linux
- Run something forever in bash until you want to stop it 13 February 2018 Linux
- Related by keyword:
- Guake, not Yakuake or Yeahconsole 23 January 2010
- Fish - most important Python package since distutils 07 May 2010
I use this many times every day. When you run a big task that dumps lots of lines (at varying speeds), and you want to read or highlight some text in the output, hit ctrl-s to freeze the console before reading the text. You can still scroll around in the terminal's buffer.
or you could pipe the output into 'less'.
Ctrl-S is useless on modern machines and serves only to frustrate and annoy.
pressing scrollock in most terminals should have the same effect
Thanks for the useful inputs.
You just saved my frozen session. Thanks.
Thank you - this has been bothering me forever.