A Mac's sleep settings are spread across several places in System Settings, and the names don't always say what they do. Three new guides sort it out.
How to change sleep time on a Mac covers the Lock Screen display timer, the Battery and Energy settings, and the pmset commands if you prefer Terminal.
Mac sleep vs lock screen explains the difference between locking, turning the display off and sleeping. All three make the screen go black, but each one treats your running apps and downloads differently. It lists the shortcut for each.
And if your Mac won't sleep at all, sleep prevented by powerd shows how to find out what's holding it awake.