It's well-known that people are generally multifaceted, and that, typically, different circumstances bring out different facets -- that's more general than the online/offline issue.
I never met Naggum in person, only online, so I have no personal theory about him.
It's not so much, 'how do you know?' as 'what difference does it make?'? If almost all of your encounters with them are cruel, the fact that they're kind offline is irrelevant. Most of the targets of their cruelty won't ever meet them offline, and so will only be exposed to their cruelty.
Although if you think about it, what sounds more believable—a genuinely nice person who spends most of their time treating people cruelly, or a nasty person who is afraid to show it when they have to face the target of their cruelty?
Both were the real him. Which may defy logic a tiny little bit, but human personalities aren't really bound by logic.
Just because we have contentious argument doesn't mean we don't like each other.
I also think he fell into a trap of bad behavior and he wasn't able to disconnect from it. Years before he died he disconnected from comp.lang.lisp. That seemed to be the only way he could change, and it meant not participating in conversations there.
If someone is pleasant in person, yet crass or cruel online—but 99% of our interaction with them is online—then I think their online persona is the real them, and their pleasant in-person demeanor is the fake.