Idle bash script until CTRL+c event is logged Assuming you're connected to a TTY: # idle waiting for abort from user read -r -d '' _ </dev/tty