Ubuntu Skills&Memo

版本:Ubuntu8.04

1. 终端(shell,bash)配置文件:

个人配置文件:/.bash

全局配置文件:/etc/bash.bashrc

2. hostname配置文件:

/etc/hostname

3.通过apt-get install命令安装的软件下载目录为:

/var/cache/apt/archives

4. 终端颜色修改:

修改终端配置文件~/.bashrc

在下面的片段中修改:

if [ "$color_prompt" = yes ]; then
     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

     把else语句中的PS1修改如下:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31;40m\]\u@\h:\[\033[01;32;40m\]\w\[\033[1;37;40m\]\$\[\033[1;37;0m\] '

 效果如下图:

 

参考文献:http://www.linuxfocus.org/ChineseGB/May2004/article335.shtml

猜你喜欢

转载自danielwood.iteye.com/blog/812394