Nov 5 2008
linux启动配置文件
- 0 Comments
/etc/profile 或 /$HOME/.bash_profile 中添加
PS1=”\[\e]0;\w\a\]\n\[\e[36m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$”
export 行添加上PS1
\u代表用户 \h代表主机名 \w代表现在所在路径 36m、0m代表颜色 \n代表换行
可以改变提示符
root@edwinzhou ~
$cd /etc
root@edwinzhou /etc
$