/etc/profile和$HOME/.bash_profile
Linux中含有两个重要的文件 /etc/profile和$HOME/.bash_profile 每当系统登陆时都要读取这两个文件,用来初始化系统所用到的变量,其中/etc/profile是超级用户所用,$HOME/.bash_profile是每个用户自己独立的,我们可以修改该文件来设置一些变量。
因为该文件"~/.bash_profile"是在每次登陆时才读取,因此需要重启才能生效
/etc/profile和$HOME/.bash_profile的更多相关文章
- /etc/rc.local ; /etc/init.d ;/etc/profile;/etc/bashrc;~/.bash_profile;~/.bashrc;~/.bash_logout
		1. /etc/rc.local 这是使用者自订开机启动程序,把需要开机自动运行的程序写在这个脚本里. 把脚本程序写在/etc/rc.d/init.d/目录下也可以 在完成 run level 3 ... 
- /etc/profile /etc/bashrc  ~/.bash_profile  ~/.bashrc ~/.bash_logout 说明及区别
		/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一 ... 
- etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc等配置文件区别
		什么是交互式shell和非交互式shell,什么是login shell 和non-login shell. 交互式模式:就是shell等待你的输入,并且执行你提交的命令.这种模式被称作交互式是因为s ... 
- linux  bash & profile &bash_profile 小结
		login 方式:: su - oracle 依次 /etc/bash.bashrc———— /home/$user/.bashrc ———— /ect/profile ———— /home/$use ... 
- 【转】Linux 之 /etc/profile、~/.bash_profile 等几个文件的执行过程
		原文网址:http://blog.csdn.net/ithomer/article/details/6322892 在登录Linux时要执行文件的过程如下:在刚登录Linux时,首先启动 /etc/p ... 
- Linux 中/etc/profile、~/.bash_profile 等几个环境配置文件的执行过程
		环境变量是和Shell紧密相关的,用户登录系统后就启动了一个Shell.对于Linux来说一般是bash,但也可以重新设定或切换到其它的 Shell.对于UNIX,可能是CShelll.环境变量是通过 ... 
- linux下 /etc/profile、~/.bash_profile ~/.profile的执行过程
		关于登录linux时,/etc/profile.~/.bash_profile等几个文件的执行过程. 在登录Linux时要执行文件的过程如下: 在刚登录Linux时,首先启动 /etc/profile ... 
- linux的/etc/profile、~/.profile、~/.bashrc、~./bash_profile这几个配置文件
		在添加环境变量的时候,我们会去修改配置文件 如果留意过,网上博文,有些在/etc/profile文件中配置的,有些是在~./bash_profile文件中配置的,等等 那么,/etc/profile. ... 
- Linux 启动时profile、bashrc、~/.bash_profile、~/.bashrc、~/.bash_profile执行顺序以及文件说明
		Linux 启动时profile.bashrc.~/.bash_profile.~/.bashrc.~/.bash_profile执行顺序以及文件说明 一.执行顺序 登录linux时,/etc/pro ... 
随机推荐
- java + jquery + ajax + json 交互
			前端js部分: $.ajax({ async:true, cache:false, type:"POST", dataType : 'json', url:"/shopp ... 
- easyui form 方式提交数据
			http://ldzyz007.iteye.com/blog/2067540 <form id="ff" method="post"> . ... 
- mysql语句分析
			explain的每个输出行提供一个表的相关信息,并且每个行包括下面的列: 1,id select识别符.这是select的查询序列号.2,select_type 可以为一下任何一种类型simple ... 
- Android 实现卫星菜单
			步骤:一:自定义ViewGroup 1.自定义属性 a.attr.xml b.在布局文件中使用activity_main.xml c.在自定义控件中进行读取 2.onMeasure 3.onLayou ... 
- 求三数中Max和猜拳游戏
			方法一: Console.WriteLine("请输入三个数字:"); int a = int.Parse(Console.ReadLine()); int b = int.Par ... 
- PHP中的替代语法(转)
			我们经常在wordpress一类博客程序的模板里面看到很多奇怪的PHP语法,比如: <?php if(empty($GET_['a'])): ?> <font color=" ... 
- JavaScript实现全排列
			<html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> ... 
- linux用命令行来执行php程序
			<?php $start = microtime(true); for($i=0 ; $i <10000 ; $i ++){ // echo '正在执行第'.$i.'个操作! '.PHP_ ... 
- centOS 下 VSFTP的安装和设置
			http://blog.csdn.net/swiftshow/article/details/7367609 一.FTP的安装 1.检测是否安装了FTP :[root@localhost ~]# rp ... 
- dedecms如何随机调用指定分类下的文章到网站首页
			dedecms是全静态的,有时会因为其他事情好几天没写文章推荐到首页,那样对se不是很友好.原本ytkah是想在网站首页上半部分调用几篇id从200到500的文章随机展示的,这样每次更新首页给se的赶 ... 
