w # find the TTY to kill
who -u | grep pts/XXX # grep for TTY to find PID (last column)
ps aux | grep <PID> # verify what the process is
 
# If <PID> is an interactive shell,
kill -HUP <PID>
# Otherwise
kill <PID>

References

  • bash(1)