process.getegid()
process.getegid()
方法返回 Node.js 进程的有效数字标记的组身份(参见 getegid(2)
)。
if (process.getegid) {
console.log(`当前的 gid: ${process.getegid()}`);
}
这个函数只在 POSIX 平台有效(在 Windows 或 Android 平台无效)。
The process.getegid()
method returns the numerical effective group identity
of the Node.js process. (See getegid(2)
.)
if (process.getegid) {
console.log(`Current gid: ${process.getegid()}`);
}
This function is only available on POSIX platforms (i.e. not Windows or Android).