QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 853|回复: 4

命令提示符的问题

[复制链接]
发表于 2005-4-14 20:59:10 | 显示全部楼层 |阅读模式
我的命令提示符没动它它怎么自己就变了
以前
[jh@localhost jh[
这应该是以前的捍示符,可现在怎么变成了
bash-2.05b$
root的提示符都正常着
发表于 2005-4-15 00:05:44 | 显示全部楼层
看看用户目录下的.bashrc
PS1那一段
回复

使用道具 举报

 楼主| 发表于 2005-4-15 22:13:27 | 显示全部楼层
没有那个文件只有一个.bash_history这个文件
回复

使用道具 举报

发表于 2005-4-16 08:54:32 | 显示全部楼层
root@2[root]# cat .bashrc
# ~/.bashrc
# Hiweed-Debian Desktop default ~/.bashrc file

umask 022

PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games"
[ "$UID" = "0" ] || PATH="$PATH:."
export PATH

# enable bash completion in interactive shells
[ "$PS1" -a -f /etc/bash_completion ] && . /etc/bash_completion
TTY=$(tty)
TTY=${TTY##*/}
[ -n "$TTY" ] && PS1="\[\]\u@$TTY[\W]\\$\[\] " || PS1="\[\][\W]\u\[\] "

alias ..="cd .."
alias cd..="cd .."
alias which="type -path"
alias where="type -all"
alias l="ls -a --color=auto"
alias la="ls -la --color=auto"
alias ll="ls -l --color=auto"
alias ls="ls --color=auto"
alias dir="ls --color=auto"
alias mv="mv -i"
alias rm="rm -i"
alias cp="cp -i"
alias halt="halt -p"
回复

使用道具 举报

 楼主| 发表于 2005-4-17 12:57:26 | 显示全部楼层
忘了说了我的系统是redhat 8.0
不知道上面那个配置文件可以不
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-3 08:22 , Processed in 0.039555 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表