要切换到root用户,在CentOS系统中,可以使用以下命令:

su -

然后输入root用户的密码,即可切换到root用户。也可以使用以下命令:

sudo su -


这样需要输入当前用户的密码,然后就可以切换到root用户。