Linux切换其他用户执行命令 发表于 2020-01-01 | 分类于 运维 | 阅读次数 7,583 代码段 su - user_name <<HERE $commands HERE 终端中 <<EOF $commands EOF 单行 su - user -c $commands sudo -u user $commands linux 发表评论 取消回复要发表评论,您必须先登录。 著作权归作者所有