How to boot into single user mode of CentOS 7.* to edit some file when you forget root’s password

When you forget the password of root using the CentOS 7.*, there is a way to get in the system in the “single user mode”.