These are the basic commands in Linux where each has different usage:
sudo su
This is the command that will be used for entering into the root user, It is nothing but entering as an administrator.
yum update
This will update your machine, as we are launching the instance with the base image we need to update the machine for new packages.
For more information, checkout this Devops Tutorial.