there is a simple way you can find out whether or not you are logged in as root.

once logged in to a command-line termina, you'll receive a prompt into which you can enter commands. if you log is as the root user, a # prompt will be shown:

[root@localhost]#

but if you are not logged in as root and instead as a regular user, you will see the $ prompt instead

[root@localhost]$

hope this helps