How often have you accidentally pressed ctrl+s and had your terminal frozen? I don't understand this default mapping at all. It should be gone from Linux installations. If you're a newbie you might have even thought that the terminal has died (I did think so, and I'd restart the terminal when that happened). Apparently you need to press ctrl+q to unfreeze the terminal. These keys could be used for something better than freezing and unfreezing the console.

Get rid of these keys by running these commands:

stty stop undef
stty start undef

Instead remap these combinations to something much more useful, such as saving the file in vim with ctrl+s.


May 20, 2014, 17:46

I use very often those freeze and unfreeze, it's great when you need to stop tailing logfile for moment and then continue. Also if you already use some key combinations it's hard to learn something other on those combinations.

Simon Permalink
May 21, 2014, 05:23

Absolutely... if I were to unmap those keys, I'd be losing valuable functionality from the terminal. And there's no point in re-using them for save in vim, because anyone who knows how to use vim isn't going to expect to use Ctrl+S to save...

May 21, 2014, 10:29

Really good points!

ILMostro Permalink
October 08, 2014, 04:39

For those who may want to map "C-s" to "Save" in vim, you can place the following in your ~/.bashrc file:

if [ -t 0 ]; then
stty ixany

This works for me; though, I must admit, I barely ever use the shortcut, since it's so easy to simply type


tavs paziņa no lv ar ko kopā biji Siguldā kādreiz sen sen Permalink
May 20, 2014, 18:24

O jā, šits ir labs ieteikums! Ir gadījies "kaut ko" nospiežot nofrīzot konsoli. Tagad tu palīdzēji saprast, ko tieši nospiežot tas notiek :)

May 21, 2014, 10:31

Atceros :) Sigulda 29. jūnijs. Bildes vēl ir. :)

McCloud Permalink
May 21, 2014, 05:37

Yes - you could unmap tty stop/start but you should NEVER map Ctrl+s in vim if you ever use vim on another computer than yours.

May 21, 2014, 10:32

I'll never use another computer than mine. :)

May 21, 2014, 13:11

Interesting, though I use Linux whenever I can, my main system is OS X (BSD Unix with Bash shell). ctrl-s/-q do not freeze/unfreeze in my OS X bash environment.

Anshul Permalink
May 30, 2014, 20:05

thanks for the wonderful helped me a lot..:) waiting for ur next one :)

Karl Francis Permalink
June 30, 2014, 20:41

I am a new user of Linux and this is awesome.

June 30, 2014, 20:46

The whole content in very good. I enjoying reading your post..

July 02, 2014, 07:22

that is so a huge work and thanks

July 04, 2014, 06:57

That is so awesome work

July 08, 2014, 14:15

stty -ixon
also works for me.

August 15, 2014, 06:12

Thanks for the information. Well written

Singham returns first day reports.

August 30, 2014, 20:33

Really Nice Post
Recruitment Thanks for sharing

September 01, 2014, 06:23

I am afraid not many people would agree with you but I fully support your stance. buy homework assignments Thanks

September 15, 2014, 10:34

When you have a residential, commercial or industrial electrical project that needs to be done quickly and with an eye for quality, look no further than BELDY ELECTRIC.

Nothing Permalink
October 03, 2014, 06:53
October 16, 2014, 15:20

Great post. thanks for sharing.

October 17, 2014, 10:24

sabarimala Ayyappa temple Opening Dates along with online queue booking process & sabarimala accommodationOnline Availability darshan Timings Calendar 2014 to 2015

October 17, 2014, 10:24

Awesome content

October 17, 2014, 10:25

Amazing Content

November 11, 2014, 18:15

Nice article

When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several e-mails with the same comment. Is there any way you can remove people from that service? Thanks a lot!

November 17, 2014, 10:46

helpful and great sharing.thanks a lot for information.

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "browser": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.