Linux useradd命令

0 Preface/Foreword

1 useradd介绍

该命令是系统管理命令(System management command)。

useradd- create a new user or update default new user information

1.1 描述

++useradd++ is a low level utility for adding users. On Debian, administrators should usually use adduserinstead.

When invoked without the**-D** option, the useradd command creates a new user account using the values specified on the command line plus the default values from the system. Depending on command line options, the useradd command will update system files and may also create the new user's home directory (主目录,根目录) and copy intial files.

1.2 --comment

-c, --comment COMMENT

Any text string. It is generally a short description of the login , and is currently used as the field for the ++user's full name++.

1.3 --create-home

-m, --create-home

Create theuser's home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the -k) will be copied to the home directory.

1.4 --shell

-s, --shell SHELL

The name of theuser's login shell . The default is to leave the field blank , which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by defaut.

相关推荐
vortex52 分钟前
Linux 命令行十六进制编辑器:高效操作二进制文件
linux·运维·编辑器
mcharleylei40 分钟前
Centos 安装docker
linux·docker·centos
jerry-892 小时前
系统安全及应用
linux·运维·服务器
AiFlutter2 小时前
在AlarmLinux系统中安装KeyDB
linux·运维·服务器
Trouvaille ~4 小时前
【Linux】命令为桥,存在为岸,穿越虚拟世界的哲学之道
linux·学习·开源·操作系统·编程·命令行·基础入门
kyle~5 小时前
Linux--权限
linux·运维·服务器
谁在夜里看海.5 小时前
【Linux-网络】初识计算机网络 & Socket套接字 & TCP/UDP协议(包含Socket编程实战)
linux·运维·服务器·网络·计算机网络
小诺大人5 小时前
Linux(Centos、Ubuntu) 系统安装jenkins服务
linux·jenkins
千航@abc5 小时前
vim如何显示行号
linux·编辑器·vim
冷影玺6 小时前
网络系统管理Linux环境——StorageSrv之Mariadb
linux·运维·mariadb