ctrl+d与ctrl+c ctrl+d 表示EOF ctrl+c 表示的是INT 信号(2), 即想进程发送一个中断,他和TERM是不一样的; 原文 http://bbs.chinaunix.net/thread-2200232-1-1.html