How to switch from general user to root user in CentOS

Time:2020-1-16

1. Open the terminal, and the prompt is “$”, indicating that the user is an ordinary user. At this time, enter Su directly, enter the root password, enter, and you can switch to root. At this time, the prompt changes to “ා”.

Be careful,When entering the password, the terminal does not display, and every time you switch to the root user, you have to go through this process.

2. Switch back to the normal user, just enter “Su user name”.