[问题]谁能帮我把你们自己的/etc/profile的内容贴出来

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
abcdos
帖子: 27
注册时间: 2006-11-19 18:45

[问题]谁能帮我把你们自己的/etc/profile的内容贴出来

#1

帖子 abcdos » 2007-09-06 16:50

如题
因我的/etc/profile的内容被我搞乱了不能进系统了
谢谢
abcdos
帖子: 27
注册时间: 2006-11-19 18:45

#2

帖子 abcdos » 2007-09-06 17:28

有没有人帮个忙呀,急呀
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#3

帖子 bones7456 » 2007-09-06 17:35

$ cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi

umask 022
关注我的blog: ε==3
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#4

帖子 stlxv » 2007-09-06 17:59

从来没动过它... Ubuntu 7.04 -->

代码: 全选

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
        . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

umask 022
启动时要执行自己的代码是用/etc/rc.local。
PHP是最好的语言!不服来战!
头像
findfunaax
帖子: 49
注册时间: 2007-10-29 11:02
联系:

#5

帖子 findfunaax » 2007-12-20 19:43

顶啊,我正需要
回复