Linux:shell登录过程

在这里插入图片描述

如果修改bash的环境变量可以这样做:
在~/.bashrc文件末尾加入:

if [ -f /root/shell.sh ]; then
        . /root/shell.sh
fi

然后每次打开新的shell都会执行此shell(/root/Desktop/shell.sh)中的脚本。
个性化配置参考:

alias cls='clear'
PS1='\n*********************** \A \w\n> '
posted @ 2018-12-24 09:14  xuejianbest  阅读(510)  评论(0编辑  收藏  举报