Every once in awhile, I'll press CTRL+S by accident while I'm inside a terminal window. For the longest time, this simple accidental keystroke meant I had reconnect to my Linux server, kill whatever program I was running, and then start it again. Eventually I got sick of this happening and decided to do what I should have done in the first place: Google It.
Apparently CTRL+S actually does XOFF, which means the terminal will accept key strokes but won't show the output of anything. It will appear as if your terminal is dead when it's really just waiting to be turned back on. The fix? Simply press CTRL+Q to turn flow-control on (XON). If you pressed a whole bunch of keys before pressing CTRL+Q, you'll see the output from those keystrokes.
In the Windows world, CTRL+S is used as the Save command. Over the years, I've developed the habit of pressing CTRL+S every few minutes while working on a document, simply because I've had too much work lost from stupid errors. Thankfully, this habit will no longer get in my way of working in the Linux world.
Update: A commenter suggestedย a way to disable CTRL+S from sending XOFF altogether:
add this to your
.bashrc
(man stty
for more options):
stty ixany
stty ixoff -ixon
Update: A commenter provided a tip for making CTRL+S actually save the file in Putty'd VIM.
Yes!!!! Thanks so much! I imagined this was a simple issue, but my previous attempts at screaming and banging on the keyboard failed to elicit the magic Ctrl-Q combination…
Haha, I’m glad this helped you! It drove me crazy for many months too. I just couldn’t believe it was so easy to crash a terminal session and I didn’t want to unlearn my habitual “Ctrl+S” habit for fear of losing work later on down the road.
Thanks for the tip, your page was at the top of google search. I have also killed a few unix sessions after hitting ctrl-s, no more!
You’re most welcome, Darren! Glad I could help. ๐
wicked, cheers! This has been bugging me for a while.
phew!!!
thanks so much…. i was fed up with this since morning…. can’t help pressing ctrl-s to save a file i’m editing
Thanks! Been having problems with this.
Now knowing what it does, that could be quite useful. Would be great if I want to join a massive amount of lines in VI (uppercase J) over a slow connection. It’d still draw it all upon ctrl+q, but then I know I can tab away while it labors over the joins.
That’s a great use of ctrl+q, Jerek! Thanks!
This was one hell of a bugging issue. Thanks a lot for getting rid of a really big pain in the neck.
Its good to recover from ctrl-s BUT i need ctrl-s a lots in emacs, putty freezes everytime i press ctrl-s, how can i disable it?
Strange, sometimes i have this problem, sometimes i dont. I dont get it.
If you can help me, thanks
Ok, i figured it now.
http://blog.i64.pl/PiosBlog/200610/29-linux-keyboard-shortcuts-you-should-know-about/
for somereason, my emacs lost his configuration when ran under screen. i created new screen window, started emacs and ctrl-s worked as search command as it should.
Thanks.
Hey Tree, thanks for the update and the URL!
Thanks a lot for this!!!
Thanks For this, I found a way of disabling the CTRL-S sending XOFF.
add this to your .bashrc (man stty for more options)
stty ixany
stty ixoff -ixon
Some programs like rtorrent listen for CTRL-S. This might still be getting mapped to XOFF, we have only disabled listening to keybopard XOFFs NOT sending them. If you need to send CTRL-S and/or CTRL-Q you can add
stty stop undef
stty start undef
Thank you for reading man and helping us out Morgy.
Hey Morgy, thanks a lot for the tip! That is really useful.
thanks so much saved my life!!!
Thank you soooooo much! This has been really driving me crazy. Thanks!!!
Thank you so much! Thank you , thank you!!
Thank you! This has been driving me nuts all day while I’ve been working in VI! My CTRL-S habit kept “freezing” Putty and requiring me to reconnect to the server, argh!!
Man, you’re my saviour !
Hey, thanks for a nice tip..
bless google + helpful people on the internet
Just had to say thanks, I should have googled this a long time ago! d’oh! I use vi for text editing but I often hit ctrl-s out of habit from the many Windows programs using that shortcut to save.
This also sounds like a great way to hide some commands if someone is looking over your shoulder! hehe
Haha yeah, it would definitely be a good way to hide commands from someone looking over your shoulder, but you’d need to have very good typing accuracy! ๐
Just to echo other people thanks!
I have bitten by this quite a few times, pressing Ctrl-S by accident when I wanted to press Ctrl-A in emacs.
WOOT!!! i completely agree with your “i should have googled it” … so nice!!
You have NO idea how helpful you’ve been today. Likewise, I have the habit of pressing to save and it usually becomes an issue when editing a document in vim. No longer!
Always happy to hear I could help! ๐
Too easy….
Na endlich eine Lรถsung zu diesem blรถden ShortCut, da hat das ewige รถffnen von neuen Sessions endliche ein Ende
Danke, danke, danke
Bitte, Bert! Glad to help!
Thanks a lot from me also! (#29 in this list, eh?)
You’re welcome, Matthias! ๐
Thanks! That saved me quite a headache as well.
Good work, this has been an annoyance for some time ๐
This has happened to me a couple of times while editing files in vi – I thought I’d gone into a weird vi mode that I couldn’t get out of (yet couldn’t find documentation on it anywhere!). Then today it happened on the command line so guessed it was putty. Thanks for the post! Will save me time and time again in the future!
thaaaaaaaaank you ๐
You’re welcome, Ivan! ๐
Im currently using the Windows version of Putty and for the life of me can’t figure out how to disable Ctrl-S from suspending my Putty window, its getting quite annoying.
I think the Windows version differs from the version the above users are using since I don’t have a .rcbash to work with.
I have tried going to Connection > Serial and selecting None in Flow Control but no luck.
Please help
Hi Johnson,
I’m not sure if you can entirely disable CTRL+S in Windows, but simply pressing CTRL+Q after accidentally pressing CTRL+S should return the terminal to a normal state.
thanks
You’re welcome, Hai.
You are awesome! I press CTRL+S wayyyy to much out of habit.
CTRL+S is a good habit to have! I’d rather accidentally suspend my terminal than lose a ton of work in some other Windows program! ๐
Oh boy! I had been totally over this since yesterday and bugged a couple of people at work also. I am so glad to have found this blog. Thanks Raam for pointing this out. Whew…. I am relieved now ๐
You’re welcome, Galred! I’m glad you found this post! ๐
Thank you so so much!
You’re welcome, Sevak!
Awesome post
Thanks Tom!
It’s hilarious how such a simple thing can wreak so much havoc. This was driving me nuts for a while. And judging by the amount of comments, some other people too… Thanks for the tip.
Glad I could help. ๐
Hi Raam,
Many Thanks Dude…
I have faced this pain many times man… Instead of pressing ctrl+c i will press ctrl+s…. denn fucked,….. close that session open a new one…
from now i wont have such probs… ๐ thanks again….
You’re welcome, Kiran! Thanks for stopping by! ๐
Thank you thank you thank you.
You’re welcome welcome welcome, Ken!
Thanks so much!
In Emacs, CTRL+X then CTRL+S saves your document. Unfortunately, I’ll oftentimes press CTRL+Z (fatfingered CTRL+X) then CTRL+S. The CTRL+Z will background Emacs (returning to the shell) and then the CTRL+S performs the XOFF, which sucks because it meant recovering the file that I was attempting to save.
Thanks so much for this solution!
I feel your pain, Josh, and you’re welcome!
haha this made my day and put big smile on my face!!!!! i was about to close the terminal n reconnect but yeah Googled it and saved me from alot of anger!
I’m happy to hear this made you smile! ๐
You just saved me from a session of head-banging. Thanks!
Head-banging == bad! Glad I could help!
Very good responses from many users. Great post.
I have a quick question.
Does CTRL+s pauses the processing until we press CTRL+q?
Howdy. No, it does not pause processing … it just locks the scroll buffer. For a simple illustration of this, start up screen, then run the following:
while sleep 1 ; do date ; done
While this is running, hit CTRL-s, wait ten or so seconds, and hit CTRL-q.
Many thanks!
A chilled beer is there for your disposal should you travel to Munich or Bangalore!
You’re welcome, Chandra! I’m planning on traveling soon, so I might take you up on that offer! ๐
Thank You !!! Finally no more reloading sessions. ๐
You’re welcome, PolarBear! ๐
Hey Buddy,
Thanks a lot for this useful information…
You’re welcome, Shyam!
you are a life saver. ctrl+s was a constant pain for me. thanks for putting up this page.
-admirer
You’re welcome! Thanks for stopping by! ๐
You life saver you! Thanks :D.
A thankful man!
You’re welcome, Mr. Thankful! ๐
Thanks
You’re welcome, Martin!
Thanks. Was getting extremely tired of exiting putty and recovering swap files. ๐
You’re welcome, Bruce! I remember the time consuming frustration of recovering those swaps files! ๐
You da man… Was driving me crazy!!!
Haha, thanks Tim! Glad I could help. ๐
thank you for the information, i realized it was ctrl+s that freezed the screen not connection problems after the third time
You’re welcome! Glad I could help. ๐
Merci beaucoup!
Tu m’as sauvรฉ la vie…
Son….Son…..SON….
I’m saying…..
Thank you.
You’re most welcome, Kokopelli! ๐
thanks……
You’re welcome, Pitt! ๐
๐ … can’t say more.
Thanks, i was having the same problem ๐ thanks a lot.
m/
You’re welcome, Pedro! ๐
Omg thanks for this! I got soooo sick of this crap. I landed here by searching this on Google believe it or not:
“what the fuck does control s do in vim”
Haha, that’s hilarious! I’m happy it helped!
Awesome! I’ve been breaking my head on this one… Saves me a lot of time reconnecting and rewriting some code I’ve written between the previous save and when pressing CTRL + s!
Glad to hear I could help, Niels! ๐
Thanks!!! I needed that. ๐
You’re welcome, Jesse! Glad to help!
“Every once in awhile, Iโll press CTRL+S by accident while Iโm inside a terminal window. For the longest time, this simple accidental keystroke meant I had reconnect to my Linux server, kill whatever program I was running, and then start it again. Eventually I got sick of this happening and decided to do what I should have done in the first place: Google It.” – word!
๐
This had me pulling my hair out. Thanks!
I know the feeling! Glad I could help. ๐
Thanks!
This have been bugging me a looong time
Glad I could help! ๐
Thanks a lot!
Thank you soooooooooooo much.. I would have been in trouble.. thank you thank you thank you…
You’re welcome! ๐
Thank you! This happens to me every now and then and never fails to p!$$ me off.
You’re welcome! ๐
Thank you so much.. this has been bugging me for a while now.. cheers ๐
cheers
haha, this was great thanks.
Glad to help! ๐
thnx a lot ๐ that worked well..
useful for de one who s used to Windows Doc
I love you.
Thanks to google I found you
And thanks to you that you found the solution
Glad I could help, HerrSerker! ๐
Man, thanks so much! I was going insane for a while with that one.
I’m a Windows programmer who occasionally uses Linux, and I honestly can’t stop myself from hitting ctrl+s every few minutes.
Glad I could help man. ๐ I grew up on Windows and developed the CTRL+S habit early on!
“Every once in awhile, Iโll press CTRL+S by accident while Iโm inside a terminal window. For the longest time, this simple accidental keystroke meant I had reconnect to my Linux server, kill whatever program I was running, and then start it again. Eventually I got sick of this happening and decided to do what I should have done in the first place: Google It.
…
Over the years, Iโve developed the habit of pressing CTRL+S every few minutes while working on a document, simply because Iโve had too much work lost from stupid errors. Thankfully, this habit will no longer get in my way of working in the Linux world.”
DEJA-VU. This is exactly why I’m here.
Thanks for posting this (and being on top of the google hits!)
Haha, thank Google for getting me to the top… it seems I’m certainly not the only one. ๐
Thanks for this.
After some messing around I noticed CTRL+C works as well, at least for me. The only difference is that it does not execute any of the commands entered since CTRL+S was pressed. It seems to be just a simple interrupt.
Cheers.
Thanks for the note, Robbie. CTRL+C never worked for me, so perhaps its a difference in terminal settings or keybindings.
Thanks!
Glad to help, Nathan! ๐
Funny that after decades of using Mac/Windows/*nix, I only just started making this mistake. Ctrl-Q is so much easier than killing the PuTTY session, logging in again, and recovering the file! Add my thanks to the many over the past four years.
You’re welcome, Dave! It took me almost a year of pressing CTRL+S and then killing Putty before I hunkered down and looked for the solution. ๐
This helped me too! The gift that keeps on giving.
It’s definitely the gift that keeps on giving! I had no idea how many people this would help when I published it. ๐
Damn love you man!… i was sick and tired of that shit…
Haha, I hear you man. Glad I could help. ๐
Thank you very much. Pressing Ctrl+S to “save” while in a terminal session has been quite a huge problem for me down the road. This post made my day. =)
You’re welcome, Espen! Glad to help! ๐
Thank you! I’ve also been trapped – until now :).
Glad to help, Visko! Cheers! ๐
Bravo. Iใ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝใ๏ฝ๏ฝ๏ฝใ๏ฝ๏ฝ๏ฝใ๏ฝ๏ฝใ๏ฝ๏ฝ๏ฝ๏ฝใ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ ใ๏ฝ๏ฝใ๏ฝ๏ฝ๏ฝ๏ฝใ๏ผฃ๏ฝ๏ฝ๏ฝ๏ผ๏ผฑใ๏ฝ๏ฝ๏ฝ๏ผใ๏ผด๏ฝ๏ฝ๏ฝ๏ฝ๏ฝใ๏ฝ๏ฝ๏ฝ๏ฝ๏ผใ
Glad I could help, Zhipeng! ๐
Yet another soul saved from lost work by your post.
This is why blogs are awesome. Post about some obscure thing you figure out, you never know how many people you’re going to help.
Thanks!
Glad I could help, Jeremy! That’s why I love blogs too! ๐
Man, you saved me! Thanks from Rio, Brazil!
Awesome! Glad I could help, Leo! ๐
Yay!
I’ve been doing this for 12 years or so.. THANK YOU ๐
Haha, glad I could help, John! ๐
Your are great.
I work a lot with putty and had that problem since…. years!. I thought it was a bug in putty or on my ssh server.
This really helps my <>. Thank you so much.
Thanks, Py! I thought it was a bug in Putty or SSH too, but then I realized both of those have been used by so many people that I must be missing something!
Yes ! Thanks !
You’re welcome, Marcus! ๐
This post will never be old, because there are many people still trapped on Ctrl+S habbit like me , haha.
Thanks Raam.
Haha, I hear ya! It took me months to replace my CTRL+S habit with Cmd+S when I switched to Mac OS X. ๐
Single most useful post I’ve read all year! Thanks!
Glad I could help, Tom! ๐
4 years on from your post and it’s still a godsend.
And while I’m here, just seen your intriguing About description. I think I’ll read more. I’m liking the social responsibility bit. We’re just about to launch a boardgame for iPad with 5% going to Amazon Conservation Association. Seems like a little way to give something back in the right direction.
Paul, that’s fantastic! Thank you for setting an example for others to follow. Imagine how much good we could do if all apps in the App Store gave 5% of each transaction to a charity. And I mean really, when you look at it on a per-transaction basis, would we miss that tiny amount?
You just became my personal hero.
Thanks!
ztank
Glad I could help, Claudio! ๐
Same here! Thankyouthankyouthankyouthankyouthankyou!
Haha, you’re most welcome, Gabe! ๐
I share everyone’s gratitude towards you. You saved me a lot of trouble.
Glad to help! ๐
Thank you so much! I’m always alt-tabbing back and forth between Komodo Edit (uses CTRL-S to save) and a putty terminal and I’ve run into this a million times.
So sick of having to restart putty session and recover whatever file I was editing.
This is an awesome tip.
You’re welcome, Mike! Glad this helped. ๐
Thanks a boatload! You just saved my notebook from serious physical damage.
You’re welcome, Doodio! Who knew that this post would become so helpful when I posted it a few years ago. ๐
Wow, thanks! After having my putty console freeze for the 3rd time today, I decided to google “putty ctrl+s” and lo and behold, your page came up and solved all my life’s problems!
Seriously though, thanks for posting ๐
You’re most welcome, Craig! Glad I could help. ๐
This thing is really anoying… Thanks a lot, it was driving me crazy
Glad I could help, Remiz! ๐
Awesome. I though it was vim getting back at people who use gui editors! Forgot all about putty in the middle. Thx much.
Haha, glad I could help, Chad! ๐
Thanks, this helped so much!!
Glad I could help, Graham! ๐
A life saver! Greetings from Chile!
Glad it helped, JLO! ๐ I’d love to visit Chile sometime! ๐
This was such a helpful post!
Glad you found it helpful, Tom! ๐
Oh man thanks, this was driving me nuts.
Glad it helped, Steven! ๐
Thanks a lot!
The Ctrl+Q really kills the devil ๐
You’re welcome, Alhad! ๐
wow – this is an active thread, and long-lived! and well deserved – I am new to vi and you saved me from torment. Thanks a ton!
Haha, glad to help, Ryan! This post does indeed seem timeless; each comment reminds me of that! ๐
Haha…i see every few weeks someone stumbles across your helpful tip…
Saved me from some frustration…the power of google plus helpful people …. Thanks
Ahmed from South Africa
Haha, it never ceases to amaze me, Ahmed! ๐
Thank you very much !
I can see I’m not alone ๐
Have a good day.
You’re most welcome, Thierry! ๐
Fantastic; this has been driving me nuts for two years; finally googled it… ding! Solution! Thanks! Cheers, Chris
Glad you found this, Chris! ๐
YEAH!!! You’re THE MAN!!! thanks BRO!! cheers! ๐
Haha, you’re welcome man. ๐ Cheers!
I knew there had to be a way out of CTRL+S hell. Thanks for putting this on the web. You’ve been a big help!
You’re most welcome, Matthew! Glad it helped! ๐
Infinite props man, this was starting to piss me off hahaha.
Glad I could help, Nils! ๐
And your post just keeps on giving …
Another satisfied customer – months of frustration has finally ended.
Thank you!
You’re most welcome, Kevin! Happy to oblige! ๐
This is really cool. +1
Glad you think so, Pranav! ๐
.. and I’m the next person you’ve helped so much which this tip. Thanks!
Glad to help, Stefan! ๐
Thank you so much!
You’re most welcome, Dylan. ๐
Thank you, saved to much time!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You’re welcome, Chris! ๐
After finding that XOFF was what was happening on a Ctrl+s from your blog here, this is is what I use to make Ctrl+s actually save the file in putty’d vim:
.bashrc :
# turn off Ctrl + s XOFF (XON is Ctrl + q)
stty ixany
stty ixoff -ixon
stty stop undef
stty start undef
.vimrc :
” Ctrl+s to save
map <C-s> :w<cr>
imap <C-s> <ESC>:w<cr>a
” Ctrl+q to quit, hold shift to discard changes
map <C-q> :q<cr>
imap <C-q> <ESC>:q<cr>
map <C-S-q> :q!<cr>
imap <C-S-q> <ESC>:q!<cr>
Thank you very much for the tip, Brad! (FYI, I fixed the bracket problem and deleted your other comment.)
I’ve added a link to this comment at the bottom of the main post.
Very well done,saved my time,thanks a lot!
You’re most welcome, Simon! ๐
Thank you very much.
exelent
Most value post!! thankS
Glad it helped, axer! ๐
Much appreciated, thanks. A lifetime of Windows tends to stick with you, so I too was going nuts.
Glad I could help, Mads! ๐
Achievement Unlocked!
Been bugging me for ages, such a simple thing.
And whoever Brad is, awesome protip there. ๐
Yay! Glad it helped, Stoo! ๐ And yeah, Brad’s tip is great.
Thanks very much, was driving me insane!
Glad I could help, William! ๐
Oh god, all the needless frustration due to my lack of knowledge of Linux and PuTTY.
Thanks so much for the tip!
You’re most welcome!
Thanx a lot!!!!! I’ve been irritated for a loooooong while whith this.
Haha, I know how you feel, Daniel! Glad I could help. ๐
It was so simple and was troubleing me for so long.
thanks to “Ctrl + Q”, it is not longer a problem now.
It’s amazing how two simple keys can remove so much frustration, isn’t it? ๐
GOD! This has been driving me nuts. For the longest time, I could never figure out what “killed” the terminal session. Without even thinking about it, I’ve gotten in the habit of hitting CTRL-S about every two minutes or so – or at the break of a thought or idea. This has become so habitual, I don’t even know I do it – chalk it up to a necessary, learned survival instinct thanks to buggy Microsoft code.
I didn’t realize until just the other day (and we’re talking YEARS of this happening to me) that what was happening was actually a result of something _I_ was doing!
I just did it again tonight and decided to again Google the “fix” because I knew it could be recovered from – just I couldn’t remember how. I know I won’t remember either, so A HUGE THANK YOU for the .bashrc config! (and for this article in general). No longer do I have to kill the terminal and re-establish the connection and login all over again!!
_Much_ appreciated………………..
Haha, I hear your frustration. That’s exactly what got me to write this in the first place. ๐ I’m glad I could help and provide a place for others to share their tips!
Thank you for this hidden solution!
My pleasure! ๐
Wow… after a number of years of having this problem I finally decided to Google it – many thanks for providing a fix to this age-old nuisance!
My pleasure, Deryk! ๐
This has been bugging me for quite some time. I showed some courage to google about it and found this. Thanks for putting this together.
Glad it helped, Narendra! ๐
Looks like you have helped thousands. Nice Post. Add me to the list. Thanks!
Haha, glad to hear it, Paul! ๐
I got stuck many times, saving as a habbit
Now I can recover
Thanks
You are most welcome, Gerard! Glad I could help. ๐
Thanks for this post Raam, still helping windows coders like myself.
My pleasure, Chris! ๐
This post is over 5 years old, but still getting hits and comments. Awesome job. And thanks!
I’m so glad so many people found this helpful, Asrar! ๐ And I’m glad to hear you’re one of them!
It really helped me today. Thanks Raam for the post.
You’re most welcome, Naresh! ๐ Happy that I could help.
Thanks for sharing ..
You’re most welcome! ๐
Thanks a lot………..
My pleasure, Venkatesh! ๐
Thanks so much!
My pleasure, oldj! ๐
thank you so much for the tip ๐
Glad I could help, Duc! ๐
THANK YOU!!! You just added at least a year back on my lifespan!
My pleasure, Jamie! ๐
Thanks! I thought I was having connection issues last night, but your post solved my problem.
Glad I could help, Mike! ๐
thank you for the fix ๐
My pleasure! Glad I could help, Rick. ๐
I’m very grateful for this post. Like you, I’d restart my terminal session and it became a nuisance, well not any more. Thanks again.
Glad I could help, Angsar! I had no idea how helpful this one post would be when I published it a few years ago, but I’m glad I did! ๐
Thanks a lot! Great tip)
Glad I could help, Andrii! ๐
Hey Ram…. its been 5 years now I was battling with this irritating issue. I was so dumb that I never searched for this over net in these many years. Even you post is 5-6 years old but you will still find your FANS for this particular post. Thank you so much for this. :). Add myself in your fans list ๐
Thank you, Vikas!! I’m so glad this helped and I’m happy to have a fan! ๐
Thanks! I did this twice today and this tip kept me from losing some work.
You’re most welcome, Jim! Glad I could help. ๐
Thank you! I have been looking for a solution for a long time
You’re welcome! Glad i could help. ๐
Many thanks! Kept me from throwing my machine out the window ๐
My pleasure, Christian! ๐
Haha I’ve been doing the same until I came across this article today ๐
Funny how so many people have had the same problem and it makes me wonder how many more people are putting up with this and how many people have trained themselves to NEVER do CTRL + S in PuTTY ๐
Thanks for solving this for me!, Ste
Haha, yeah, it’s an interesting study in human procrastination! I avoided researching the problem for years, instead choosing to force myself to unlearn CTRL+S in PuTTY. That didn’t work, so this post was born, and now it’s serving people who arrived at the same conclusion I did: Why not just research how to solve the problem? ๐
That is awsome! Thanks for the tip – ive only just started pressing ctrl+s and its been bugging the heck out of me. Nice to know there is a way to continue working ๐
My pleasure, Troy. Glad to know that I could help. ๐
Raam, consider me another of your new best friends. Thanks a million.
๐ Glad to hear it, Remington! Thanks for the comment.
thank you!!! man i freaking hate when this happens
Haha, you’re welcome! Glad I could help. ๐
Thanks Man, it seriously helped
You’re welcome! ๐
OH! Saved me! Thanks.
You’re welcome, Eduardo! ๐
Much thanks for the help. Spent several days thinking I had to restart my session again and finally got curious enough to see if anyone else had this issue. 6 years down the road and your post is still helping out. Thanks! ๐
You’re welcome, Ryan! I’m glad you found this helpful. ๐
Thank you very very very muuuuuuch.
You’re most welcome, Maryam! ๐
Thanks this was helpful. For years I was miffed that an accidental tap of the Windows Menu Key (that windows logo key on many keyboards) seemed to “freeze” my PuTTY sessions. After finding this link, I realized that I can “unfreeze” the PuTTY session by typing Ctrl+Q (I am not sure if I want to prevent the Ctrl-S behavior as you also document via stty settings but that too is a useful tip given my tendency to fat finger the windows key).
You’re welcome, Stephan! I’m glad this helped with your Windows Menu Key freezing PuTTY issue. ๐
Thank you so much! I was gettingย annoyedย by constantly having to open new sessions over this. At first I thought it was some random connection/bug/something, but I started noticing a pattern with the CTRL-S so a quick Google search sent me over here, and you saved the day, and possibly a lot more days to come ๐
Woohoo! I’m glad I was able to help, Fredrik! ๐ That makes me wonder how many hours/days/years of time this one post has collectively helped save humanity…
Thanks you very much ๐
Glad I could help, Hari! ๐
Brilliant!! ย Thank you so much. ย This has been making me nuts and like you, I finally Googled it.
You’re most welcome, Leslie! ๐
Another use case for this is with the very handy screen tool, that uses Ctrl-A to switch between screens.
As it happens, I pressed the neighbor ‘S’ instead of ‘A’ and was wondering what sort of black magic had frozen my session… ย ย ย …until I found this. Thanks!
Yes, I love screen and I’ve run into the same problem. Glad this helped! ๐
Thanks, man!ย Lifesaver!
My pleasure! ๐
2013.. and this “accident” still happen.. thanks dude!
Haha, yeah, I’m amazed how helpful this article still is… six years after publishing it! Glad I could help. ๐
thanks a lot!
You’re welcome, Naveen! ๐ I’m glad you found this useful.
Wow… That was an awesome tip! Thanks so much!
You’re most welcome, Siddharth! I’m glad this helped you. ๐
oh my god thank you this worked
You’re welcome, Jake! Glad I could help. ๐
Thanks for the awesome post! I kept doing the same thing and it was driving me mad!
You’re most welcome, Armin! Glad I could help. ๐
Raam, this page is shown on top of results when you google for “Linux ctrl-s freeze”. This helped me. Thanks!
Thanks for letting me know it helped, Nishant! ๐
Thanks so much for this. Had been happening to me forever and I was loosing a ton of work because I would just exit out of my terminal. Thanks!
You’re most welcome, Derek! ๐
Thank you. So. Much.
You’re most welcome, Ben! ๐
Thank you so much!
I am pressing Ctrl/S many times…
Now I see the light ๐
You’re welcome, Alex! ๐
Thanks. this is a life saver.
You’re welcome! Glad I could help. ๐
Thanks for Article. It occasionally drives me crazy.
You’re welcome, James! ๐
You have helped me with a “problem” with VIM ๐
Accidently I pressed on CTRL+S to save and then I was stuck.. after reading this, I have recover my terminal window ๐
Thanks… ๐
You’re welcome, Paulo! I’m glad this helped! ๐
More than 6 years after you wrote it, this page is still helping people. Thank you greatly!
I’m constantly surprised! I’m glad this helped you. ๐
haha I just pressed Ctrl+S and was like WTF and now have read this article, pressed Ctrl+Q and I’m like a baws now B)
๐ I’m glad this helped!
Thank you!
You’re welcome, Akrzemi! ๐
Thanks!! So simple!!
You’re welcome, Alguien! Simplicity is beautiful. ๐
thx bro, it really does help!
You’re most welcome, anow! ๐
Thanks. This have been bugging me for many years now.
You’re welcome, Nir! I’m glad this helped you.
I also finally got sick of it and Googled it. Thanks for the anwser.
You’re welcome, Adi! I’m glad you found this. ๐
OMG finally I can be rid of this PITA!! Thank you so much!!
You’re welcome! I’m glad this helped, Russell. ๐
Thank you Thank you Thank you!
I’ve dealt with the same exact issue for the same exact reason as you! I finally googled it and brought me to your page. Thanks again!
You’re welcome, Leo! I’m glad Google brought you here. ๐
First time I ran into this, first thing I saw on google, just saved my ass. Thanks man.
You’re welcome, Doug! ๐
thanks, man ๐
My pleasure, Wallace! ๐
THANK YOU SO MUCH!
You’re most welcome!
Thanks!!!1111oneeleven
You’re most welcome, David! ๐
Thank you, happens to me for the same reason!
You’re welcome! Glad this helped. ๐
This Article was mentioned on raamdev.com
Thank you. Thank Google.
stty -a
……
start = ^Q;stop = ^S; susp = ^Z;
……
My pleasure! ๐ And yes, thank you Google!
Bastante util, mil gracias… en mi caso es bastante comรบn presionar esta combinacion de teclas.
Ha sido un placer! (It was my pleasure!)
Thank you!!
You’re welcome, Mark! ๐
A banana is a steep prize… oh well, your post did help after all! So have it, but pls don’t kill me!
Thank you, Markus! ๐
(Sorry for the delayed reply; I’m just catching up to comments now!)
Thank you man!
You’re most welcome, Dani! ๐
Thanks man!
You’re most welcome, Per! I’m glad this helped. ๐
It helped me a lot. I was wondering why my session hanged. I also have the same habit coming from the windows world. Thanks Raam!
You’re welcome, Badal! I’m glad this helped you. ๐
It is very helpful!
Finally i do not need to start a new session.
Thanks.
You’re welcome, Leon! I’m glad this helped. ๐
thank you
You’re most welcome! ๐
Thank you!
You’re most welcome, Deian! I’m glad this helped. ๐
thank you so much! this has bothered me for a while and only now did i think to search for solutions. this is going to really help me.
i just don’t hope i now get in the habit of pressing ctrl+q often, because i switch back and forth between PC and mac – trading one problem for another!! ๐
You’re welcome, NS! I’m glad this helped you. Yeah, it’s tough developing habits when you switch between Mac and PC!
I was about to lost a large amount of work because of this stupid ctrl + s. Fortunately, I came accross your topic. Thanks a loooot !
It worth far more than one banana, 21 I’d say ๐
Haha, thanks Lucas! I’ll take 21 bananas!
Ramm, this is a true life saver…, thank you for posting this article.
It hung the putty completely when I pressed ctrl s , instead of ctrl a, by mistake from a screen session. After hours of struggle, as dont wanted to close it , I thought lets google it, and first page I came across is yours. And it FIXED the issue with Ctrl q , wow! , Thanks a lot ..it helped. Raj.
You’re most welcome, Raj! I’m glad to hear this fixed the problem for you. ๐
Thanks a lot Raam… Now at least I don’t have the problem in switching between windows and unix as often as I have to do..
You’re welcome, Subh! I’m glad I could help. ๐
+1 again! At least it’s been a year and a half since I last had to research this (and comment on your post). Different server, so I didn’t have the .bashrc fix from last time. At least I recognized immediately what I’d done – just couldn’t remember the Ctrl-Q key combo. Thanks, AGAIN, for this sanity-saving post!
Haha, you’re most welcome Jasel! ๐
The cure for the habitual windows keyboard jockey.
Already used five times today. ๐ Thank you!
You’re welcome, Anon! ๐
thanks alot. i was looking for this solution for a long time.
You’re welcome, Rohit! ๐
Super 3rd time I had to kill I googled straight came the answer… Thanks Buddy!
Haha, my pleasure Abraham! I’m happy this helped you, again.
The unimaginable embarrassment during code review … CTRL + Q saved the day
Yikes! I’m glad this saved you! ๐
Thanks a ton ๐
You’re most welcome! ๐
Awsome. I’ve lived my whole life up to this.
๐
Thank you very much!!!!!!!!!!!!!!!!Love you!!!!!!!
You’re most welcome, Sean. ๐
Thanks Raam., I am clueless., after hitting ctr+s., I thought my session got crashed. With your help ctrl+q, not is resolved.
Awesome! You’re most welcome. I’m so happy this helped you. ๐
Interesting! it works. Thanks!
You’re welcome, Dau! ๐
I love you
Haha, you’re welcome! ๐
Thanks!
You’re most welcome, Rhys! ๐
Thanks for sharing this tip, really help.
You’re most welcome! ๐
7 years later and you just made my day… Thanks!
Woohoo! ๐ Glad to hear that, Angel. ๐
Thanks Raam for this post. I’d pressed Ctrl+S while a system file was edited (VI), the last thing I wanted to do was to terminate the session. Thanks so much !
You’re most welcome, Serge! I’m so happy this helped save you! ๐
Thanks a lot! Got rid of my head ache
You’re welcome, Bheema! ๐
Thanks Raam, I was sure the connection had dropped ๐ Btw, I wanted to send a banana your way, but seems like the link is broken…
Thank you for letting me know about the broken link, Dimitar! ๐ Here’s a working one: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V2GGLJ5MAHE7Q
Thank you soooo much! I have shut down so many putty sessions this past two weeks (I am new to putty and am so automatic hitting CTRL-S to save because I have fallen victim to losing data too often).
I knew that there had to be some simple explanation. Looks like you have been helping people with this solution for a long time! Again, many thanks!
Sandra
Hey Sandra, my pleasure! I’m so happy you found this as helpful as I did. ๐
Thanks man. This helped ๐
You’re most welcome! ๐
Simple, efficient ! you are the man !
Glad I could help, Julien! ๐
This continues to help people ๐
I was not even aware of the habit which I had imported to VIM – found this post while looking to find out why VIM collapse so many times during Putty. I guess I should have read this one back in 2008!
Ha, better late than never, right? ๐
Thanx Raam.. this really helpedq
You’re most welcome, JT! ๐
Goddamit! Finally I noticed this issue.
I thought my computer was going mad.
Thanks for solving this
Haha ๐ I’m glad I could help! ๐
surely, its a good remedy
dude, thanks.
You’re welcome, Bruce! ๐
Yes this post was useful. Sometimes I press Ctrl + S in PUTTY and have to reconnect to my Linux machine. This helps avoid that. Thanks a lot.
I’m glad you found this useful, Prachi! ๐
THANK YOU :*
Haha, you’re welcome, Greg! ๐
Yes thanks a million Raam ..finally this issue drove me over the edge today as I too am suffering from the “habitual windows save keystroke combination”.
I’m also amazed at your dedication Raam for still responding to comments now even after starting this post nearly 8 years ago! Cheers Josh
You’re most welcome, Josh! ๐ If someone takes the time to leave a comment, the least I can do is reply! Cheers!
Raam,
Thanks a lot.. It will definitely help us to make the putty working again.
You’re most welcome! I’m glad it will help. ๐
relieved smile I love you…
Haha ๐ Glad I could help, Sam!
Following in your footsteps….8 years later.
Some information is timeless! ๐
thanks Raam Dev
You’re welcome, Selva! ๐
u are a saviour. Thanx for highlighting “Ctrl-Q”
Thank you. I’m glad you found this helpful. ๐
Yes thanks for that been bugging me for a long time and was never sure what had happened to putty i would just close it down and start it back up again, however it wasn’t until recently that my automatic crtl-s habit bugged me enough to search for a solution.
I’m glad this helped, Chris! ๐
I LOVE YOU. Wish I found this earlier
Haha, I know how you feel. ๐
Thanks a lot man, especially for the
.bashrc
snippet. Funny, this probablem just started to appear a month or so back, perhaps it was the console drivers or something which got an “upgrade”.Cheers!
I’m glad I was able to help, Torstein! ๐
Thank you for this. Like you I’m in the habit of typing Ctrl-S regularly in other programmes and, because I have two screens, sometimes I lose track of which programme I’m working in and start typing on the wrong screen. (Next fix – Get your computer to read your mind so it always knows to enter data in the programme you think you’re typing in?)
I’m glad this helped! Ha, I think it will be some time before computers are regularly reading our minds. ๐
Thank you! Thank you! Thank you! That was getting really annoying! You’ve saved me many a frustrating minute in recovery time!
Glad I could help, BH! ๐
This is amazing thank you!
For anyone else reading this, if you update your .bashrc and want to see the changes immediately without logging out and back in.
Type:
source ~/.bashrc
or
. ~/.bashrc
Thanks for the tip, Kevin! ๐
One BIG “Thank you”
You’re most welcome, Tomas! ๐
Unbelievable!!! 10 years later i’m where you where at that point…
I don’t know why this only stated to happen to me the last year, yet a big THANKS!!!!
Ha, it still surprises me that this post is still useful, after so many years. It sort of makes me wonder how many years from now this will still be useful! Gotta love the Internet! ๐
Thanks a ton!! You actually CTRL-Q whole mystery of dead session ๐
Saved a lot of time.
You’re most welcome, Monika! Glad I could help. ๐
Add me to the list of grateful readers. ctrl-w-s SHOULD split my vim window, but as soon as Putty catches the S, I’m doomed…
Glad to help, Kevin! ๐
Awesome!! Thanks for bailing me out from this trouble ๐
You’re most welcome, Anshul!
Thank you!
You’re welcome, Sonny!
This was driving me crazy!!!!
11 years on and still getting grateful comments… how does that feel?
It feels great, Mikayla! And it still surprises me! ๐
Where were you all these days!!!! Thanks bud
Happy to help, Anand!
Thanks! After years of working with putty I just managed to figure out that it was CTRL+S hanging, which led me to your post which obviously solved my issue.
Glad I was able to help, Ioannis!
Thanks!!! had a same problem for a long time
It’s nice to hear that I wasn’t the only one! ๐
It is happy to see a person who has same habit as me. I am always run another terminal to kill the vim when I press a Ctrl-s in a vim, until today, I could not endure the insolence of this. I ‘bing’ this topic, and see you what you met. Thanks for your solution.
You’re most welcome, Zhao!
Sooooo Cooooool! Not only the fix, but the fact that you figured this out 13 years ago and your post is still saving people! And all those cool comments!
Now that is one for the record books.
Thanks for your help.
You’re most welcome, Joshua! Yes, it’s still incredible that this post is still helping people. It makes me wonder just how many more years this can go on. ๐
yes, lots of grief annulled with this posting. Thank you!
You’re most welcome, Vuvu!
lol, you don’t want to know how many time I lost due this.
Thanks!
Happy that I could help, Cristian!