The main components of a computer include the hard drive for permanent file storage and operating system installation, the motherboard that connects other components, and the processor that performs commands and controls the computer. Additional components are optical drives like CD and DVD drives for reading and writing data to discs, input devices like the keyboard for entering text and mouse for point-and-click commands, the monitor for viewing the computer's response, and RAM for temporary storage to increase system speed.