An operating system is software that acts as an interface between the computer hardware and the user. It performs basic tasks like file management, memory management, process management, input/output control, and managing peripheral devices. The functions of an operating system include memory management, processor management, device management, file management, security, controlling system performance, job accounting, error detection, and coordinating other software and users.