0
0

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 5 years have passed since last update.

【超シンプル備忘録】 Linuxでのパスを通す

0
Last updated at Posted at 2021-02-09

「パス」とは、「コマンドサーチパス」の略称です。
すなわち「パスを通す」とは「コマンドを探しにいくパス(ディレクトリー)の設定をする」という意味になります。

パスを通すためには、環境変数PATHに対して、通したいパスを「:」記号区切りで指定します。
この設定には、exportコマンドを利用します。
たとえば、現在の設定に加えて「/usr/sample」というディレクトリーにもパスを通したい場合は、次のように実行します。

$ export PATH=$PATH:/usr/sample
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?