2

( ) , . Linux, , MacOS.


MacOS:

  1. .
  2. .

printenv :

printenv
printenv
. , set.

- , echo:

echo $[_]

, PATH, , echo:

echo $PATH
. $ .

, , , . , .

export:

export [_]=[_]

:

  • [_]: , .
  • [_]: , .

export :

export [__]=[__]:$[__]

:

  • [__]: , .
  • [__]: , .

, PATH, :

export PATH=/Users/test/test_folder:$PATH

.bash_profile :

  1. .bash_profile, :
    ~/.bash-profile
  2. .bash_profile .
  3. export, :
    export [_]=[_]
  4. ,
  5. .bash_profile, , :
    source ~/.bash-profile

unset, :

unset [_] 

50% Merion Academy