关于shell脚本source ~/.bash_profile不起作用
来源:互联网 发布:ccd对位算法 编辑:程序博客网 时间:2024/06/03 16:00
比如写自动化脚本的时候
我要安装两个应用a和b,而且b的安装依赖于a命令。
那么安装a后就要把bin/a添加到$PATH后面,然后source 方能生效,才能使用命令a。
我在shell里也写了如下的命令:
export PATH=$PATH:xxxx/bin/a
source ~/.bash_profile
.....
cd b/
a --prefix=/... --x=....
大致就是这样的意思。
但是并没有起作用。
然后用软连接ln -s bin/a /usr/bin/a
这下就起作用了。。。
0 0
- 关于shell脚本source ~/.bash_profile不起作用
- 关于Linux shell脚本中的 if判断“不起作用”的问题
- fedora shell脚本中的export命令不起作用
- shell脚本支持source命令
- source, ~/.bashrc, ~/.bash_profile详解
- source ~/.bashrc ~/.bash_profile
- source, ~/.bashrc, ~/.bash_profile详解
- source, ~/.bashrc, ~/.bash_profile详解
- Mac:source .bash_profile
- source, ~/.bashrc, ~/.bash_profile详解
- shell脚本中source有关问题
- shell脚本的执行和source
- 环境配置文件: login, non-login shell, /etc/profile, ~/.bash_profile, source, ~/.bashrc
- Shell[一]:zsh 每次打开Terminal都需要source bash_profile问题
- 关于shell脚本学习
- 关于shell脚本
- 关于shell 脚本
- linux 把cd 命令写在bash shell脚本里不起作用
- LeetCode Sum Root to Leaf Numbers
- Python环境搭建与连接SQL Server类MyDBase的实现
- 在进程间切换文件描述符
- matlab tensor toolbox 实现HOSVD(高阶奇异值分解)推荐系统
- 13&14A strange lift
- 关于shell脚本source ~/.bash_profile不起作用
- Navicat使用亮点
- KMP模板代码
- 线程池的使用
- 21. Merge Two Sorted Lists
- [SSM] Spring mvc+ Spring+ Mybatis+ maven 搭建服务器
- 属性动画的初步认识
- 二叉树后序递归、非递归遍历
- 10 个 Redis 建议/技巧