Strictly speaking, all nucleated (eukaryotic) cells contain linear DNA. In addition to the nucleus, the mitochondria (which break down food molecules and create chemical energy) and chloroplasts (which facilitate photosynthesis) also have small stores of their own DNA and this DNA is circular. This adds weight to the hypothesis that these organelles were once prokaryotic cells that came to exist in symbiosis with early eukaryotes.
There is also cytoplasmic DNA free-floating in eukaryotic cells. These are also circular and normally contain short copies of chromosomal DNA sequences. Their function is not well understood.
In prokaryotes, some species of spirochaetes and bacteria have been found with linear chromosomes. In addition, prokayrotes contain extra-chromosomal DNA called plasmids. Bacteria are able to pass plasmids from one to another and express the genes on them: this is an important source of the spread of antibiotic resistance genes through bacterial populations. Plasmids are also normally circular, but linear structures also exist.
References: