A shell is a computer program that gives users a command line interface to control their computer. It works by allowing them to input commands with a keyboard.