The built-in shortcut
Press Shift + Command + 5.
Choose to record the entire screen or a selected area, click Record and stop from the menu bar. The file lands on your desktop as a .mov. Microphone choice and a timer are in Options.
QuickTime Player
Open QuickTime Player, choose File, then New Screen Recording.
It records the screen and a microphone and lets you trim the result. It does not zoom, add steps or create subtitles.
A recorder for product videos
If the recording is for a release, a bug or a walkthrough, use a tool that remembers your cursor and clicks.
ReleaseVu records a screen, a window or an area and adds smooth zooms, steps and subtitles afterwards.
Share the result
Large .mov files are awkward in tickets.
Export a smaller mp4 and check the size with the recording size calculator.