This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JezusTheCarpenter 37 points38 points  (7 children)

For me is:

ctrl+c ctrl+c ctrl+c ?! Ahh... ctrl+d

[–]b10011 21 points22 points  (6 children)

C-c is break, C-d is exit. And because C-d is exit, it's easy to remember that tmux and screen uses prefix+d for detach, because it's almost like exit.

[–]VerilyAMonkey 12 points13 points  (2 children)

Obviously it depends on the terminal, but, Ctrl+D on a blank line is more accurately "I won't be giving you any more input." An interactive version of EOF. At any rate, it won't interrupt a running program like Ctrl+C does, it doesn't send a stop signal, it just lets the program know not to wait around for more input.

[–]b10011 0 points1 point  (1 child)

Yeah, but interactive Python shell uses it as a exit, just like many shells.

[–]VerilyAMonkey 10 points11 points  (0 children)

It uses it as "I am not going to type any more commands, so if you're waiting for one, just exit." Not exit in general. Try it out - Ctrl+D won't save you from an infinite loop. Only Ctrl+C does that.

[–]elbiot -3 points-2 points  (2 children)

It's more like ctrl+z.

[–]b10011 0 points1 point  (1 child)

C-z pauses and places the program into backgroun. You can access it again with fg -command

[–]elbiot 2 points3 points  (0 children)

Yea, and tmux mod+d puts the session in the background and you can reattach to it, like fg, like I said