记得以前面试的时候被人问倒过,特意标记一下。
  1. linux下:  
  2. ctrl-c 发送 SIGINT 信号给前台进程组中的所有进程。常用于终止正在运行的程序。  
  3. ctrl-z 发送 SIGTSTP 信号给前台进程组中的所有进程,常用于挂起一个进程。  
  4. ctrl-d 不是发送信号,而是表示一个特殊的二进制值,表示 EOF。  
  5. ctrl-/ 发送 SIGQUIT 信号给前台进程组中的所有进程,终止前台进程并生成 core 文件。  
  6.   
  7. Key Function   
  8. Ctrl-c Kill foreground process   
  9. Ctrl-z Suspend foreground process   
  10. Ctrl-d Terminate input, or exit shell   
  11. Ctrl-s Suspend output   
  12. Ctrl-q Resume output   
  13. Ctrl-o Discard output   
  14. Ctrl-l Clear screen  
  15.   
  16.    
  17.   
  18. 用stty -a看看终端配置。 
09-05 09:38
查看更多