天嵌 ARM开发社区

 找回密码
 注册
查看: 3686|回复: 5

求助,在Ubuntu下不知怎么修改/etc/profile

[复制链接]
bladem 发表于 2010-11-1 23:40:32 | 显示全部楼层 |阅读模式
我在Ubuntu10.10下打开/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 [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

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
machoe 发表于 2010-11-2 08:38:52 | 显示全部楼层
在UBUNTU 系统下,需要修改/etc/enviroment文件
天嵌_support1 发表于 2010-11-2 11:24:14 | 显示全部楼层
1# bladem


呵呵呵。
你也可以每次直接 export 一下再用你的编译器。
 楼主| bladem 发表于 2010-11-2 12:38:09 | 显示全部楼层
感谢各位!!
chenbang110 发表于 2010-12-30 17:08:15 | 显示全部楼层
ubuntu要修改enviroment,怎么修改呢?
天嵌_support1 发表于 2010-12-30 17:17:33 | 显示全部楼层
5# chenbang110


export命令吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-5 20:26 , Processed in 1.018490 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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