---
title: "linux下添加path"
author: "vocaloid"
date: "2012-06-30T10:27:18Z"
tags: []
categories: ["操作系统"]
slug: "linux-path"
draft: false
lastmod: "2012-06-30T10:27:18Z"
id: 1571426
url: "https://vocaloid.iteye.com/blog/1571426"
---

在 ext/profile中，在对应位置手动添加

 

export PATH=$PATH:（$路径名）

 

之后在终端中执行 source /etc/profile 使文件立即生效

之后只要在终端中直接敲入加入在配置文件中路径所包含的可执行文件名即可执行程序

 

应该还有其他的方法，慢慢学习中...