3: Environment Variables(Working with programs)

2016/09/14 00:42
阅读数 0

So far, we've been creating shell variables. These variables can be accessed only within the bash shell.

Another type of variable is an environment variable. These can be accessed by any program that is run from the shell.

We can create environment variables using theexport command. export FOOD="Chicken and waffles" will create an environment variable called FOOD.

Instructions

  • Type export FOOD="Chicken and waffles" to create an environment variable called FOOD.

export FOOD="Chicken and waffles"  

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部