ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Linux 用户 用户组的增删改查基本操作

    Apr 14, 20233 min read

    Linux 用户 用户组的增删改查基本操作:

    用户管理:

    添加用户:

    sudo adduser username

    删除用户:

    sudo userdel username

    修改用户密码:

    sudo passwd username

    查看用户:

    cat /etc/passwd

    用户组管理:

    创建用户组:

    sudo groupadd groupname

    删除用户组:

    sudo groupdel groupname

    将用户添加到组中:

    sudo usermod -a -G groupname username

    查看用户组:

    cat /etc/group

    相关文章

    js的方法sort默认是按什么方式排序的?

    JavaScript的`sort()`方法默认按Unicode编码顺序排序,但可传入比较函数自定义排序方式。

    Docker 2-way localhost integration in Docker host networking mode

    In Docker host networking mode, configuring both the host and container to share the host's network stack enables bidirectional localhost communication.

    修改 docker 容器内的时区

    该内容描述了如何在Docker容器内通过命令行操作将时区修改为亚洲/上海。

    Flutter 生成N位随机数

    该Flutter函数`_randomBit(int len)`生成一个指定长度的随机数,首位从1-9中随机选择,其余位从0-9中随机选择。

    Vue 简单 splash

    Vue应用在加载时显示一个简单的加载动画,持续3秒后消失。