Answers for "whoami bash file"

C
1

whoami bash file

if [[ "$(whoami)" != "any_name" ]]; then
  echo "Only user 'any_name' can run this script."
  exit 1
fi
Posted by: Guest on May-28-2021

Code answers related to "C"

Browse Popular Code Answers by Language