首先,su – 到新创建的用户

拷贝默认的.bashrc过来

cp /etc/skel/.bashrc ~/

然后创建.profile文件

vi ~/.profile

粘贴下面的内容

# ~/.profile: executed by Bourne-compatible login shells.
 
if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

mesg n

想立即生效,执行下面命令

source ~/.profile

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-08-06
  • 2022-01-21
  • 2021-12-03
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案