《问》What's the difference of Environment variable and Shell variable?

《问》

What's the difference of Environment variable and Shell variable?

  • An environment variable is a globally available, in a program and it child programs. A shell variable is only available in the current shell.
  • Environment variables are NOT ONLY global/system-wide. Shell variables are private to the currently running shell, and they are NOT exported (passed on) to any child processes. Environment variables are exported to any child processes.

Comments

Popular posts from this blog

英语口语

Ruby语言专用工具讲座:Exerb

《问》What are the differences between more and less?