linux 环境变量的设置

参考:http://ubuntuhjbl.jiaogen.com/

 

不再赘述详细内容,需要总结如下:

 

   linux下的环境变量设置涉及的文件:

 

   a.   /etc/profile  

 

  b.   /etc/environment

 

  c.   ~/.bash_profile

 

  d.  ~/.bash_rc

 

 

  另外如果只是为了临时修改环境变量,$ PATH=”$PATH:/my_new_path” (关闭shell,会还原PATH)

 

 

 

 

 

 

 

 

 

另外:

获得root权限

 

我们在使用Gamit的过程中,要一直获得root权限,但是root权限在Ubuntu系统中不是默认开放的,需要大家自己去开放,下面就先进行root权限的获取。

 

在Ubuntu操作系统中打开终端(Terminal )——红色部分为自己进行输入部分:

   1. yangsq@my-laptop: ~$ sudo passwd root   

   2. Password: 

then input yangsq's passwd 

Terminal 

   1. Enter new UNIX password:  123  

   2. Retype new UNIX password:    123

   3. passwd: password updated successfully   

input the root passwd two times.OK 

2) root权限登录

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章