Score:1

what happens when you run pkill ""

hn flag

I am trying to understand what happened, while working on my machine I noticed a crashed app with a

" " is not responding

force quit or wait message on it, it had this icon and was named image on the title bar and "" in the error message crashed app icon, I pressed force quit on the GUI and my mouse stopped clicking for a while. I then wanted to kill it through the terminal so I ran

pkill ""

but my screen went black and I found myself back into login screen, after I signed in the screen went black again, after I restarted my device everything was fine.

but what exactly happened?

Score:2
hr flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.