Mwnci getgid() Function Syntax getgid() Description The getgid() function returns the numeric group id of the caller. Example println(getgid()) 100