Ubuntu修改命令行提示符 (linux - customize prompt in shell)
2011-07-16 22:04
441 查看
Ubuntu中如果要把提示符改为当前路径的最后一个目录再加一个空格,可以在~/.bashrc里加入 export PS1='\W> '。(如果在/etc/rc.local/加,~/.bashrc中默认对PS1的设置会覆盖/etc/rc.local中的自定义设置。)
提示符的其它选项、参数可以参见
http://www.linux521.com/2009/system/201103/13326.html
设置方法相同,在~/.bashrc中将PS1设置为相应参数即可。
提示符的其它选项、参数可以参见
http://www.linux521.com/2009/system/201103/13326.html
设置方法相同,在~/.bashrc中将PS1设置为相应参数即可。
相关文章推荐
- windows+linux修改系统启动项+fedora+ubuntu+deepin
- How to: Create Files in Linux from a Bash Shell Prompt
- Adding a Custom System Call to Ubuntu Linux in [C]
- install android studio in ubuntu linux
- How to customize a link at your desktop in LINUX
- [linux]How to set PATH in shell script, and keep it avaiable even after it exits
- 修改 Ubuntu 用户的 Shell
- 【Linux】【Shell】Ubuntu Shell 前后台任务控制
- linux下面修改默认的shell
- Linux Deepin 2014.2(Ubuntu 14.04)忘记密码修复办法
- Ubuntu - linux下修改分区的卷标 ( Partition Label )
- linux命令之cash修改shell命令
- SHELL:Find Memory Usage In Linux (统计每个程序内存使用情况)
- 【Linux】【Shell】Ubuntu apt-get
- 在 linux 下修改用户的 limitation, (和用户的登录Shell相关)
- 详细的Linux Ubuntu定时执行Php脚本及Shell脚本笔记
- Linux修改Shell命令提示符及颜色
- ubuntu/Linux终端shell配置代理 | git 配置代理
- install Mongodb in ubuntu (Linux)
- Ubuntu/Linux Tips (shell 快捷键) .