LoginSignup
92

More than 5 years have passed since last update.

UbuntuのPATHの設定方法

Posted at

一時的にコマンドラインからPATHに追加する

$export PATH="$PATH:/opt/mono/3.10/bin"

起動時に自動的に読み込む

Ubuntuの起動時に自動的に読み込まれるようにするには、~/.profileにパスを設定をすればいい。
テキストエディタで開いて、末尾に設定を追加する。

$vi ~/.profile 

追加するのか下記の行。

PATH="$PATH:/opt/mono/3.10/bin"

再起動させずに即時反映させるには、下記のコマンドを実行する。

$source ~/.profile

パスの確認

$echo $PATH

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
92