Find and kill a process using SSH
# In the case of a faulty terminal window close while grunt watch is active, you may need to manually kill the process to restart it (it has a perpetual keep-alive until such a point as your connection to the server has been closed). top (and then press enter) # Find the process ID first. You will need the number in the PID column for the relevant row - find one that has 'grunt' under the description at the right. Press CTRL+C kill -9 [process ID] # You can now restart grunt watch.