su
分类
描述
切换用户
语法
su [选项] [用户名]
常用选项
使用示例
- su - root: 切换到root用户
- su -c 'command' user: 以指定用户身份执行命令
相关命令