Welcome To Golang By Example

Menu
  • Home
  • Blog
Menu

Check all groups that current logged in user belong to on Linux

Posted on December 10, 2023December 10, 2023 by admin

groups command on linux can be used to know which all groups a user belongs to

Just type in groups on the terminal. Below is the output on my Mac machine

staff everyone localaccounts _appserverusr admin

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Web XP