LoginSignup
1
0

More than 5 years have passed since last update.

.bash_profileにとりあえず書いておくこと

Posted at

.bash_profileにとりあえず書いておくこと

mac

下記の記述を.bash_profileにしておけば、-bash command not found地獄からは多少逃れられる気がする。

.bash_profile
export PATH="$PATH:/usr/sbin"

.bash_profileはホームディレクトリ(ユーザー名のディレクトリ)に存在している。

また、名前が「.」で始まるファイルは通常見えなくなっており、「command + shift + . 」で可視化される。

この状態でも「.bash_profile」が存在しない場合はターミナルで

$ cd ~
$ vi .bash_profile

とすると新しく作成できる。

1
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
1
0