LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1235|回复: 3

/etc/profile错误操作而丢失,大伙能贴个上来给我吗? [解决]

[复制链接]
发表于 2006-11-23 19:18:57 | 显示全部楼层 |阅读模式
命令打错了,没有留心看...
/etc/profile没有了,大伙在的话,请给我个,谢谢
---
profile这个文件在哪个包里面?
发表于 2006-11-23 19:22:06 | 显示全部楼层
#
# /etc/profile
#

export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin"

export MANPATH="/usr/man:/usr/X11R6/man"
export LESSCHARSET="latin1"
export INPUTRC="/etc/inputrc"
export LESS="-R"

# Locale settings (find your locale with 'locale -a')
export LANG="en_US"
export LC_COLLATE="C"

export COLUMNS LINES

export PS1='[\u@\h \W]\$ '
export PS2='> '

umask 022

if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" -o "$TERM" = "xterm-xfree86" ]; then
  PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}{PWD/$HOME/~}\007"'
fi

# load profiles from /etc/profile.d
#  (to disable a profile, just remove execute permission on it)
if [ `ls -A1 /etc/profile.d/ | wc -l` -gt 0 ]; then
  for profile in /etc/profile.d/*.sh; do
    if [ -x $profile ]; then
      . $profile
    fi

  done
  unset profile
fi
# End of file
回复 支持 反对

使用道具 举报

发表于 2006-11-23 19:27:57 | 显示全部楼层
/etc/profile is owned by bash 3.1.17-1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-23 19:28:15 | 显示全部楼层
谢谢了
还是要备份一次才行
回复 支持 反对

使用道具 举报

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

本版积分规则

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