Shell
奶爸
热爱音乐,热爱生活
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
修改Bash命令行提示符
打开用户家目录下的.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_chro原创 2016-10-11 10:01:06 · 4540 阅读 · 1 评论 -
Linux Shell 读取用户输入
在Linux Shell下读取用户输入可以使用read命令。 用法: echo "Input something:" read input echo "Your input is: $input" 运行结果: Input something: hahaha Your input is: hahaha原创 2016-10-12 10:23:04 · 10645 阅读 · 0 评论
分享