Python os.getegid() Method
Example
Find the effective group id of the current process:
#Import os Library
import os
#Print the effective group id of the
current process
print (os.getegid())
Try it Yourself »
Definition and Usage
The os.getegid()
method returns the effective group id of the current process.
Note: Group ids are only available on UNIX systems.
Syntax
os.getegid()
Technical Details
Return Value: | A int value, representing the effective group id of the current process |
---|---|
Python Version: | 3.1 |