English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux newgrp command

Linux Command大全

The Linux newgrp command is used to log in to another group.

The newgrp command in Linux is similar to the login command, when it logs in with the same account, another group name, logs in the system again. To use the newgrp command to switch groups, you must be a user of the group, otherwise you will not be able to log in to the specified group. A single user who wants to belong to multiple groups at the same time needs to use the alternate user settings. If the group name is not specified, the newgrp command will log in to the default group of the user name.

Syntax

newgrp [Group Name]

Online Examples

Change Group

# newgrp root

Linux Command大全