1.查看当前登陆的用户
$ who
$
finger
2.查看用户的信息
$ finger
lhj
3.查看用户所属组别
$ groups
loongson
loongson : loongson adm dialout cdrom plugdev lpadmin
admin sambashare libvirtd
4.添加用户到指定组:
#
usermod -a -G testgroup loongson
2021-07-10 02:49:22
1.查看当前登陆的用户
$ who
$
finger
2.查看用户的信息
$ finger
lhj
3.查看用户所属组别
$ groups
loongson
loongson : loongson adm dialout cdrom plugdev lpadmin
admin sambashare libvirtd
4.添加用户到指定组:
#
usermod -a -G testgroup loongson