设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 综合讨论区 —— LinuxSir.cn
›
Linux 基础讨论区(新手速成)
›
konsole提示符:konsole里普通用户的提示符变成sh-3.00$ ...
1
2
/ 2 页
下一页
返回列表
查看:
923
|
回复:
14
konsole提示符:konsole里普通用户的提示符变成sh-3.00$
[复制链接]
yuhch123
yuhch123
当前离线
积分
77
IP卡
狗仔卡
发表于 2005-6-8 17:28:54
|
显示全部楼层
|
阅读模式
konsole里普通用户的提示符变成sh-3.00$,但是su了后,root的提示符对的。
在终端里登陆,普通用户提示符也对的,但是root用户su成普通用户后,提示符没变。。。
这个是怎么回事啊? :ask
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
wangxudong
wangxudong
当前离线
积分
987
IP卡
狗仔卡
发表于 2005-6-8 17:49:36
|
显示全部楼层
.xinitrc中加入
source /etc/profile
回复
支持
反对
使用道具
举报
显身卡
yuhch123
yuhch123
当前离线
积分
77
IP卡
狗仔卡
楼主
|
发表于 2005-6-8 18:02:14
|
显示全部楼层
重进X,还是不行。
我不是startx的,好象自动运行的不是.xinitrc。
还有,我本来.bashrc=.bash_profile="source /etc/profile"
回复
支持
反对
使用道具
举报
显身卡
jhuangjiahua
jhuangjiahua
当前离线
积分
9502
IP卡
狗仔卡
发表于 2005-6-8 18:09:09
|
显示全部楼层
修改你的 ~/.bashrc
确保有 PS1='\u@\h:\W\$ '
另外 , 确保你的 ~/.bash_profile 有
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
回复
支持
反对
使用道具
举报
显身卡
yuhch123
yuhch123
当前离线
积分
77
IP卡
狗仔卡
楼主
|
发表于 2005-6-8 18:33:09
|
显示全部楼层
我的.bashrc是.bash_profile的链接,里面是source /etc/profile
/etc/profile里面有关于PS1的export
回复
支持
反对
使用道具
举报
显身卡
yuhch123
yuhch123
当前离线
积分
77
IP卡
狗仔卡
楼主
|
发表于 2005-6-8 18:35:36
|
显示全部楼层
而且我source /etc/profile后,提示符正常。
回复
支持
反对
使用道具
举报
显身卡
jhuangjiahua
jhuangjiahua
当前离线
积分
9502
IP卡
狗仔卡
发表于 2005-6-8 19:05:48
|
显示全部楼层
贴一下你的 .bash_profile
回复
支持
反对
使用道具
举报
显身卡
yuhch123
yuhch123
当前离线
积分
77
IP卡
狗仔卡
楼主
|
发表于 2005-6-8 19:11:23
|
显示全部楼层
source /etc/profile
回复
支持
反对
使用道具
举报
显身卡
versace
versace
当前离线
积分
1578
IP卡
狗仔卡
发表于 2005-6-8 19:15:04
|
显示全部楼层
在.bashrc中加入source /etc/profile
回复
支持
反对
使用道具
举报
显身卡
yuhch123
yuhch123
当前离线
积分
77
IP卡
狗仔卡
楼主
|
发表于 2005-6-8 19:39:27
|
显示全部楼层
我上面说了:我.bashrc是到.bash_profile的链接,.bash_profile里是:
source /etc/profile
回复
支持
反对
使用道具
举报
显身卡
下一页 »
1
2
/ 2 页
下一页
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
开源软件专题讨论
SuSE Linux
Debian Linux
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表