"Bernard \"Barney\" P. Milton Oliver Fife is a fictional character in the American television program The Andy Griffith Show, portrayed by comic actor Don Knotts. Barney Fife is a deputy sheriff in the slow paced, sleepy southern community of Mayberry, North Carolina. He appeared in the first five black and white seasons (1960 \u2013 1965) as a main character, and, after leaving the show at the end of season five, made a few guest appearances in the following three color seasons (1965 \u2013 1968)."@en . "Bernard P., Oliver, or Milton Fife"@en . . . . .