33行目: | 33行目: | ||
===PATH の通し方=== | ===PATH の通し方=== | ||
コマンドをいちいち「/root/bin/bash」とか打たなくても良くなる。シェルがコマンドの場所を探せるようにするため「'''コマンドサーチパス'''」を通す。 | |||
$ export PATH=$PATH:/usr/local/bin | $ export PATH=$PATH:/usr/local/bin |
2023年1月1日 (日) 19:25時点における版
シェル変数 >> 環境変数
環境変数はシェル変数の一部をコピーして準備される。そのため、シェル変数が 1,000個ほどあるのに対して環境変数は 20個ほどしかない。以下はその一部。
変数名 | 値の例 |
---|---|
SHELL
|
/bin/bash |
BASH_VERSION
|
4.4.12(1)-release |
HISTFILE
|
/home/pi/.bash_history |
HISTSIZE
|
1000 |
HOME
|
/home/pi |
HOSTNAME
|
raspi.local |
PATH
|
/usr/local/sbin:/usr/local/bin |
LANG
|
en_US.UTF-8 |
PATH の通し方
コマンドをいちいち「/root/bin/bash」とか打たなくても良くなる。シェルがコマンドの場所を探せるようにするため「コマンドサーチパス」を通す。
$ export PATH=$PATH:/usr/local/bin
関連コマンド
コマンド | 概要 |
---|---|
rehash c_rehash openssl-rehash openssl-c_rehash |
Bashが利用するハッシュテーブルを再構築。rehash scans directories and calculates a hash value of each ".pem", ".crt", ".cer", or ".crl" file in the specified directory list and creates symbolic links for each file, where the name of the link is the hash value. |
bashbug | is a utility for reporting bugs in Bash to the maintainers.bashbug will start up your preferred editor with a preformatted bug report template for you to fill in. Save the file and quit the editor once you have completed the missing fields. bashbug will notify you of any problems with the report and ask for confirmation before sending it. By default the bug report is mailed to both the GNU developers and the Debian Bash maintainers. The recipients can be changed by giving a comma separated list of bug-report-email-addresses. |
その他のShell
dash | is the standard command interpreter for the system. |
---|