LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1099|回复: 2

~/.bashr, ~/.bash_profile是怎么生成的?

[复制链接]
发表于 2006-5-2 17:32:24 | 显示全部楼层 |阅读模式
是什么软件生成的?
如果删掉了该怎么办?
发表于 2006-5-2 19:57:11 | 显示全部楼层
quoted from man useradd
-m, --create-home
              The user’s home directory will be created if it  does  not  exist.  The
              files contained in SKEL_DIR will be copied to the home directory if the
              -k option is used, otherwise the files contained in /etc/skel  will  be
              used  instead.  Any directories contained in SKEL_DIR or /etc/skel will
              be created in the user’s home directory as well. The -k option is  only
              valid  in  conjunction with the -m option. The default is to not create
              the directory and to not copy any files. This option may  not  function
              correctly if the username has a / in it.
Ÿ型
  1. [0 N0.2001 huan ~ ]$ ls /etc/skel/.b*
  2. /etc/skel/.bash_logout  /etc/skel/.bash_profile  /etc/skel/.bashrc
  3. [0 N0.2002 huan ~ ]$
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-7 16:21:37 | 显示全部楼层
Post by huan
quoted from man useradd

Ÿ型

  1. [0 N0.2001 huan ~ ]$ ls /etc/skel/.b*
  2. /etc/skel/.bash_logout  /etc/skel/.bash_profile  /etc/skel/.bashrc

  3. [0 N0.2002 huan ~ ]$
复制代码



thank you
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表