https://unix.stackexchange.com/questions/118209/exit-of-mode-in-unix-shell ^D will only work if a process is reading from standard input. ^\ is a good one too (sends a SIGQUIT)…
shelljs Portable Unix shell commands for Node.js ShellJS - Unix shell commands for Node.js ShellJS is a portable (Windows/Linux/OS X) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's…
1. shell 的$! ,$?, $$,$@ $n $1 the first parameter,$2 the second... $# The number of command-line parameters. $0 The name of current program. $? Last command or function's return value. $$ The program's PID. $! …