通过.bashrc文件快速添加路径到当前用户PATH环境变量的方法

发布时间:2017年12月07日 // 分类:运维 // 暂无评论

本方法在deepin下测试通过。Ubuntu应该也能成功。

假设当前用户名为currentuser
需要添加的路径为/home/currentuser/Shell

用当前用户权限打开~/.bashrc文件。在末尾添加:

export PATH="$PATH:/home/currentuser/Shell"

即可。

本文固定链接
https://www.ywlib.com/archives/129.html

标签
deepin, .bashrc

添加新评论 »

分类
随机文章
最新文章
最近回复