完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
最近学linux发现视频里要修改的环境变量和我电脑实际的很不一样,新手的我表示不会了。 安装好了ARM-linux-gcc交叉编译器但是不会配置环境变量。求大神帮我改一下。以下是电脑中的代码:
# /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" ] && [ "$BASH" != "/bin/sh" ]; then # The file bash.bashrc already sets the default PS1. # PS1='\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 # The default umask is now handled by pam_umask. # See pam_umask(8) and /etc/login.defs. if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*.sh; do if [ -r $i ]; then . $i fi done unset i fi |
|
相关推荐
2个回答
|
|
|
|
|
|
淡淡幽情KK 发表于 2014-9-9 21:24 哈啊哈,如你所说ok了,可是我的电脑为什么一定要修改后重启电脑才能生效,我看网上的教程说是 source /etc/profile就ok了 伤脑筋。。。 |
|
|
|
只有小组成员才能发言,加入小组>>
这是i.mx6ull的关于usb的宏定义,能解释下这些宏定义的意思
209浏览 1评论小黑屋| 手机版| Archiver| 电子发烧友 ( 粤ICP备14022951号 )
GMT+8, 2023-5-28 13:00 , Processed in 0.958914 second(s), Total 121, Slave 105 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 深圳华秋电子有限公司
电子发烧友 (电路图) 粤公网安备 44030402000349 号 电信与信息服务业务经营许可证:粤 B2-20160233 工商网监 粤ICP备 14022951 号