You need to add it to your ~/.profile or ~/.bashrc file.

export PATH=$PATH:/path/to/dir

Depending on what you're doing, you also may want to symlink to binaries:

cd /usr/bin
sudo ln -s /path/to/binary binary-name

Note that this will not automatically update your path for the remainder of the session. To do this, you should run:

source ~/.profile
or
source ~/.bashrc

最新文章

  1. jQuery Ajax请求(关于火狐下SyntaxError: missing ] after element list ajax返回json,var json = eval("("+data+")"); 报错)
  2. tableView:cellForRowAtIndexPath:方法中indexPath.row不是从0开始的,从4开始
  3. 网上搜集了点资料,学web的人互相分享共同进步吧(php编码的好习惯必须养成)
  4. CoreLocation 下的定位跟踪测速
  5. SQLserver临时表
  6. Linux 调度器模拟
  7. Combinations 解答
  8. CTR校准
  9. 【面向对象设计原则】之里氏替换原则(LSP)
  10. /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc ~/.bash_logout 说明及区别
  11. Window下SVN服务器搭建以及客户端使用
  12. .NET MongoDB Driver 2.2 API注释
  13. linux Nagios监控
  14. Nordic官网/Infocenter/Devzone/Github简介
  15. Django启动报错笔记
  16. 洛谷P2084 进制转换
  17. html-盒子模型及pading和margin相关
  18. [Aaronyang] 写给自己的WPF4.5 笔记7[三巴掌-ItemsControl数据绑定详解与binding二次处理 3/3]
  19. Creating and Destroying Objects
  20. linux删除历史操作命令

热门文章

  1. centos7部署前后端分离项目的过程
  2. 测开之路八十九:HTML之图片处理
  3. delphi中如何实现文件的复制?
  4. php扩展安装范例
  5. Map m=new HashMap()
  6. Selenium WebDriver 数据驱动测试框架
  7. 【公众号系列】SAP 主要模块及简介
  8. 四种pop模式介绍
  9. 防止XSRF 解决方案
  10. SVG.JS 画弧线