linux下: ctrl-c 發送 SIGINT 信號給前台進程組中的所有進程。常用於終止正在運行的程序。 ctrl-z 發送 SIGTSTP 信號給前台進程組中的所有進程,常用於掛起一個進程。 ctrl-d 不是發送信號,而是表示一個特殊的二進制值,表示 EOF。 ctrl-/ 發送 SIGQUIT 信號給前台進程組中的所有進程,終止前台進程並生成 core 文件。 Key Function Ctrl-c Kill foreground process Ctrl-z Suspend foreground process Ctrl-d Terminate input, or exit shell Ctrl-s Suspend output Ctrl-q Resume output Ctrl-o Discard output Ctrl-l Clear screen 用stty -a看看終端配置。
