---
title: "在linux下修改path配置环境变量"
author: "chigooo"
date: "2012-03-29T11:13:54Z"
tags: []
categories: ["操作系统"]
slug: "linux-path"
draft: false
lastmod: "2012-03-29T11:16:07Z"
id: 1468643
url: "https://chigooo.iteye.com/blog/1468643"
---

1. 在red hat系统下，
$ vi .bash_profile
在PATH和export之间，加入你要添加的路径，如：
PATH = $PATH:$HOME/abc/bin  
这里的冒号 与 window中环境变量配置时的；号是一样的作用，进行分隔；


2.在ubuntu下，需要$ vi .profile  而不是.bash_profile


最后，在配置完之后，要记得更新下，
$ . .bash_profile

第一个点 代表更新操作，
第二个点 代表隐藏文件