1. Open the terminal. The prompt is "$", indicating that the user is an ordinary user. At this time, directly enter su, press Enter, enter the root password, and press Enter. Switch to the root user, and the prompt changes to "#".
(Recommended tutorial: centos usage tutorial)
Note: The terminal is not displayed when entering the password, and you must go through it every time you switch to the root user this process.
2. To switch back to a normal user, just enter "su username" and it will be OK.
Recommended related video tutorials: linux video tutorial
The above is the detailed content of How to switch from normal user to root user in centos system. For more information, please follow other related articles on the PHP Chinese website!