linux环境变量的设置
2016-01-26 11:03
405 查看
参考链接:
http://www.powerxing.com/linux-environment-variable/
全局的环境变量存放的文件有:
etc/profile,用户登陆一次,执行一次
etc/bashrc,每打开一次shell,执行一次
/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.
/etc/profile - This file gets executed whenever a bash login shell is entered (e.g. when logging in from the console or over ssh), as well as by the DisplayManager when the desktop session loads.
http://www.powerxing.com/linux-environment-variable/
全局的环境变量存放的文件有:
etc/profile,用户登陆一次,执行一次
etc/bashrc,每打开一次shell,执行一次
/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.
/etc/profile - This file gets executed whenever a bash login shell is entered (e.g. when logging in from the console or over ssh), as well as by the DisplayManager when the desktop session loads.
相关文章推荐
- i.mx27 linux 环境搭建 ubuntu 10.04
- centos 增加扩展源EPEL
- Linux INotif机制
- How to read/write files within a Linux kernel module?
- XP用户:消除误解,大胆拥抱Linux
- linux 相关学习资源
- windows下上传文件到VWware的centos
- CentOS更换yum mirror
- linux中select()函数分析
- Linux 内核的同步机制(1)
- Linux 驱动开发概述
- linux如何开启php的oci扩展
- linux 入门
- 详解Linux 文件与目录管理
- linux安装rar
- Linux内核IP Queue机制的分析(二)——用户态处理并回传数据包
- linux系统管理命令
- 【笔记】linux下alias命令
- Linux中ctrl+z 、ctrl+c、 ctrl+d区别
- grep 命令系列:如何在 Linux/UNIX 中使用 grep 命令