Linux CLI - Users and Groups
You want to write a script that prints the username and primary group name separated by a colon, like
alice:staff. Which command combination is correct?alice:staff. Which command combination is correct?whoami gives username, id -gn gives primary group name.whoami and id -gn for username:group [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions