0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu LinuxでPATHにカスタムパスを追加する

Posted at

一時的に追加したい場合

PATHの末尾に追記するのがベター。
PATHに/custom/pathを追加するなら次のコマンドを実行する。

$ export PATH="$PATH:/custom/path"

bash起動時に追加したい場合

PATHの末尾に追記するのがベター。
PATHに/custom/pathを追加するなら次のコマンドを実行する。

$ vim ~/.bashrc

下記の行を追記する。

export PATH="$PATH:/custom/path"

設定を反映する。

$ soruce ~/.bashrc
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?