Linux switch user to root

For Ubuntu

sudo −i

password for current user:

root@your computer name#

For CentOS

common user switch to root:

su -
password:password for root

root switch to common user:

su jack:

广告


JackSun

JackSun

I'm a coder.

You may also like...

No Responses

Leave a Reply

Your email address will not be published.