noun, colloquial, now often used in a consciously archaic way. In oaths, asseverations, and phrases, originally as a euphemistic substitute for devil (OED)
“So Tom came down, and he was fairly crying. He was so upset that Len was giving him the dickens over this gate.”