If you are logged in as an ordinary user, you will either use su - to switch to root or sudo.
如果您作为一个普通用户登录,您可以使用su -切换到根目录或者sudo。
Typically, su accounts are setup so that a user can temporarily switch to another account, for example the root user or an application owner.
通常,通过设置su账户让用户可以临时切换为另一个账户,例如root用户或应用程序所有者。
System administrators who provide su access to a user gives the ability for a user to switch or substitute to another user without logging out from their current account.
系统管理员可以向用户提供su访问权,让用户能够切换为另一个用户,而不需要注销当前账户。
应用推荐