---
title: "Linux（Ubuntu）下设置环境变量"
author: "stenlylee"
date: "2009-07-26T00:13:02Z"
tags: []
slug: "linux-ubuntu"
draft: false
lastmod: "2009-07-26T00:13:02Z"
id: 433092
url: "https://stenlylee.iteye.com/blog/433092"
---

sudo gedit .bashrc

 

在文件末尾添加或修改，保存退出后执行

 

source .bashrc