whoami and id -ru

来源:互联网 发布:windows 10镜像文件img 编辑:程序博客网 时间:2024/03/29 22:27

通过whoami 和id -ru 可以判断当前用户是否是root用户

1:root 用户执行的情况

2:非root 用户


0 0