LoginSignup
0
0

More than 3 years have passed since last update.

シェル変数を一部抜粋

シェル変数とは、設定されたシェルだけが使用する変数。
わかりにくい・・・
簡単にいうと、シェルが持っている値を入れておく箱
シェルが動いているときに使える変数のこと。

・PWD
カレントディレクトリの絶対パス

〇〇:~ naoya$ PWD
/Users/naoya
〇〇:~ naoya$ 

・PATH
コマンド検索パス

・PS1
ユーザーのホームディレクトリ

・PS2
2次コマンドプロンプトを定義

・HISTFILE
コマンド履歴を格納するファイルを定義

・LANG
言語情報

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