linux:command
这是本文档旧的修订版!
Command
User and Group
List all groups on this system:
cut -d: -f1 /etc/group
List user's groups:
groups
Add a user to group:
gpasswd -a <userName> <groupName>
Remove user from group:
gpasswd -d <userName> <groupName>
Reload group without logout:
newgrp <new group name>
Disk
View disk usage:
ncdu -x -q # ncdu packages is required
Reference
linux/command.1474855735.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)