31
28

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.

bashで環境変数を削除するにはunset

Last updated at Posted at 2013-05-30

追加はexport

$ export A_VARIABLE=aaa

削除はunset

$ unset A_VARIABLE

値を確認する時はechoA_VARIABLE=""みたいな時も無いことを確認したい時はenv | grep

$ echo $A_VARIABLE
aaa 

$ env | grep A_VARIABLE
A_VARIABLE=value

参考:bashで環境変数を削除する:Linuxとは日記

31
28
5

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
31
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?