Welcome To Golang By Example

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

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