newgrp
Switches to the specified group.
Syntax
$newgrp [GROUPNAME]
Examples
Examples
$newgrp sudo
Examples
$newgrp - sudo
Warnings
Exit with exit or logout
Typical use cases
newgrp sudo
export GROUPS=... (not recommended)
Note
Creates a new session with the target group if needed.
Export