February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Changes the primary group identification of a shell process.
Syntax
newgrp [group]
Options
None
Oddities
The C shell has its own version of this command.
Example
$ grep obrien /etc/group users:x:100:obrien obrien:x:500: $ $ id uid=500(obrien) gid=500(obrien) groups=500(obrien) $ $ newgrp users # Change primary group $ $ id uid=500(obrien) gid=100(users) groups=500(obrien) $
Read now
Unlock full access