mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 15:50:43 +00:00
Update cheatsheets
This commit is contained in:
17
linux/newgrp
Normal file
17
linux/newgrp
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# newgrp
|
||||
|
||||
> Switch primary group membership.
|
||||
> More information: <https://manned.org/newgrp>.
|
||||
|
||||
- Change user's primary group membership:
|
||||
|
||||
`newgrp {{group_name}}`
|
||||
|
||||
- Reset primary group membership to user's default group in `/etc/passwd`:
|
||||
|
||||
`newgrp`
|
||||
Reference in New Issue
Block a user