what happens when you run pkill ""

Solution 1:

pkill (and pgrep) patterns use Extended Regular Expression (ERE) syntax. In ERE, the empty pattern "" matches any string. This is not the same as pattern " ", which only matches strings that contain the space character.

So your command pkill "" would have attempted to kill every process in your session.