The 'cal' command in Linux is used to display calendars with various formatting options based on user input. It can show the current month, specific years, and allow for highlighting specific dates, with options to modify the first day of the week. The command accepts different argument configurations to display a range of calendars based on year, month, and date.