Obtain the root permission for Ubuntu

To see the desktop version, see the link: blog.csdn.net/qq_36051316…

su -
Copy the code

Enter the password to complete: The effect picture is as follows:

1. Enter su –

2. After entering the correct password, we found xiaozhao became root, and then we became the highest permission

If we want to exit root, we can type exit

exit
Copy the code

Results:

Logout will be printed on the console to indicate that we have logged out.