ls -a /etc/skel :启动系统时用户加载的环境变量。
ls /etc/login.defs 用户密码使用期限,uid gid 取值范围,是否在建立用户时创建家目录等。
usermod -G 当指定新的附加组时,原附加组失效,所以通常为
-a -G 添加新的附加组
usermod -d -m 指定新的家目录位置,把原家目录文件移动到新目录下
-L 锁定账号
-U 解锁账号
全局配置
/etc/profile /etc/profile.d/*.sh
/etc/bashrc
个人配置文件
~/.bash_profile ~/.bashrc
profile类文件:设定环境变量,运行命令,脚本
bashrc类文件:设定本地变量,定义命令别名
ls /etc/login.defs 用户密码使用期限,uid gid 取值范围,是否在建立用户时创建家目录等。
usermod -G 当指定新的附加组时,原附加组失效,所以通常为
-a -G 添加新的附加组
usermod -d -m 指定新的家目录位置,把原家目录文件移动到新目录下
-L 锁定账号
-U 解锁账号
全局配置
/etc/profile /etc/profile.d/*.sh
/etc/bashrc
个人配置文件
~/.bash_profile ~/.bashrc
profile类文件:设定环境变量,运行命令,脚本
bashrc类文件:设定本地变量,定义命令别名
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26600495/viewspace-2112899/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26600495/viewspace-2112899/