(3) Environment variables of SHELL variables

  • Define environment variables:

    方法一:export 变量名=变量值
    方法二:export 自定义变量名
  • Reference variable: $variable name${variable name}
  • View environment variables: echo $variablename or export
  • Cancel environment variables: unset variable name
  • Variable scope: valid in the current shell and subshell

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324517144&siteId=291194637