How Can I Log In As root User?

Originally published at: https://www.cyberciti.biz/faq/how-can-i-log-in-as-root/

How do I log in as root user under Linux, Apple OS X, *BSD, and UNIX-like operating systems?