I\'ve been stopping commands with the trash can for too long. Command period doesn\'t work on Mac. I can\'t find anywhere how to stop the terminal via a command. Anyone know wha
In certain cases, such as running a Node server, Ctrl-C wouldn't work. Instead, you can stop the app or command by pressing Ctrl+Alt+M (i.e. Ctrl+Option+M for mac users).
Sample JavaScript code to demonstrate this:
const http = require('http');
http.createServer((req, res) => {
res.write('Hello, world!');
res.end();
}).listen(5000, () => console.log('Server running...'));