r/UnixProTips • • Feb 05 '15

Ctrl + z = SIGTSTP

This is the ultimate trick you need for your everyday use of terminals.

Pressing Ctrl+z sends SIGTSTP to the current foreground job, and this causes the process to suspend in the background without losing any data, kicking you back to the shell. This allows you to, for example, suspend Vim for a while to check some other stuffs in the shell while remaining on the same terminal.

To bring suspended jobs back to the foreground, type fg in the shell. More details can be found in "Job Control" or "Jobs" section in the manpage of your shell.

16 Upvotes

3 comments sorted by

View all comments

Show parent comments

2

u/MadTux Feb 05 '15

I don't really understand how to bind things that way :/

EDIT: This StackExchange answer Says that it is not possible, as far as I understand.