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