原文:etc/profile和/etc/environment的比较

转自:http: andy .iteye.com blog 先将export LANG zh CN加入 etc profile ,退出系统重新登录,登录提示显示英文。将 etc profile 中的export LANG zh CN删除,将LNAG zh CN加入 etc environment,退出系统重新登录,登录提示显示中文。用户环境建立的过程中总是先执行 etc profile然后在读取 ...

2015-08-30 18:37 1 4764 推荐指数:

查看详情

~/.profile和/etc/profile的区别

登入系统读取步骤: 当登入系统时候获得一个shell进程时,其读取环境设定档有三步 : 1.首先读入的是全局环境变量设定档/etc/profile,然后根据其内容读取额外的设定的文档,如 /etc/profile.d和/etc/inputrc 2.然后根据不同使用者帐号 ...

Fri Jul 17 18:37:00 CST 2020 0 557
/etc/profile Permission Denied

普通用户登录问题: root用户登录OK,但普通用户登录时提示: -bash:/etc/profile Permission Denied 解决办法: 在root的用户下查看etc目录权限,为744;这个权限是有问题的,其他用户没有列出etc目录下文件的权限,所以其他用户登录会报 ...

Fri Jan 15 00:34:00 CST 2021 0 651
修改/etc/profile文件

通常情况下,/etc/profile文件是只读的,直接用vi或gedit打开修改后是无法保存的。要修改profile,需要取得root权限,(使用gedit编辑)应该如下: $sudo gedit /etc/profile 或者 $sudo -s $gedit /etc/profile ...

Sun Jul 12 23:10:00 CST 2015 0 2909
~/.bashrc与/etc/profile的区别

~/.bashrc:该文件包含专用于某个用户的bash shell的bash信息,当该用户登录时以及每次打开新的shell时,该文件被读取. /etc/profile中设定的变量(全局)的可以作用于任何用户,而~/.bashrc等中设定的变量(局部)只能继承/etc/profile中的变量 ...

Sun Apr 07 22:49:00 CST 2019 0 928
Redhat Linux /etc/profile 与 /etc/bashrc 的区别

最近学习RHCE,在umask这里,书里说要修改/etc/profile和/etc/bashrc两个文件,却没有说明这两个区别。于是在上网查看之后倒是明白了各是怎么用的。/etc/profile是对应登录的,/etc/bashrc是对应打开shell的。但是实际使用区别在哪,如果说bashrc ...

Wed Oct 08 22:34:00 CST 2014 0 2133
profile(/etc/profile)和bash_profile的区别

profile(/etc/profile)和bash_profile的区别 profile(/etc/profile),用于设置系统级的环境变量和启动程序,在这个文件下配置会对所有用户生效。当用户登录(login)时,文件会被执行,并从/etc/profile.d目录的配置文件中查找shell ...

Wed Jun 10 22:47:00 CST 2020 0 614
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM