Chinaunix首页 | 论坛 | 博客
  • 博客访问: 409742
  • 博文数量: 117
  • 博客积分: 5235
  • 博客等级: 大校
  • 技术积分: 1775
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-12 15:51
文章分类

全部博文(117)

文章存档

2012年(9)

2011年(2)

2010年(21)

2009年(13)

2008年(72)

我的朋友

分类: LINUX

2008-06-17 23:11:09

背景:
        home目录下的配置文件只能控制一个用户,如果所有用户的某些设置相同的话,而且在启动时就进行设置,则可将相应的设置入入/etc/profie中

正文:

# /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
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="zh_CN.UTF-8"
#LANGUAGE="zh_CN:zh"
#LANG="POSIX"
LANGUAGE="zh_CN:zh,en_US:en"

阅读(575) | 评论(0) | 转发(0) |
0

上一篇:进制转换 2

下一篇:引用

给主人留下些什么吧!~~