📜  whoami bash 文件 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.384000             🧑  作者: Mango

代码示例1
if [[ "$(whoami)" != "any_name" ]]; then
  echo "Only user 'any_name' can run this script."
  exit 1
fi