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 1 year has passed since last update.

Linux 標準シェルbashの主な環境設定ファイルについて(自分用メモ

Posted at

●Linuxの標準シェル「bash」の主な環境設定ファイル

▲適用範囲:全ユーザー
ファイル名
・/etc/bash.bashrc Debian系。bash起動時に実行させたい処理(エイリアスなど)
・/etc/bashrc RedHat系。bash起動時に実行させたい処理(エイリアスなど)
・/etc/profile 環境変数などの利用環境にかかわるもの

▲適用範囲:各ユーザー個別
ファイル名
・~/.bash_profile 環境変数などユーザー環境にかかわるもの
・~/.bash_login 「~/.bash_profile」がない場合の読み込み次候補。内容は「~/.bash_profile」と同じ。
・~/.profile 「~/.bash_login」がない場合の読み込み次候補。内容は「~/.bash_profile」と同じ。
・~/.bashrc bash起動時に実行させたい処理(エイリアスなど)
・~/.bash_logout ログアウト時に実行させたい処理

※CentOSやUbuntuなどの主なディストリビューションでは、デフォルトの ~/.bash_profile または ~/.profile で ~/.bashrc を読み込むようになっている。

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?