The operating system manages the hardware and software on a computer. It performs several main functions including processor management, memory management, device management, storage management, and providing a user interface. Specifically, it controls what tasks the processor performs, manages the computer's memory and storage space, installs and updates device drivers, and allows users to interact with the system through command-line or graphical interfaces.