linux practical operation setting environment variables _shell

1. Define an environment variable

   Define an environment variable in the / etc / profile file

  

 

 2. Check the Environment Variables

  echo $ WDC_HOME

  

3. In the shell program in practical WDC_HOME

  

 

   

 

Guess you like

Origin www.cnblogs.com/wangdianchao/p/11620124.html