A command prompt is a text-based interface on a computer that allows you to input commands and perform tasks by typing specific instructions. It is a way to interact with a computer using text instead of graphical buttons or icons.