Adding environment variables in Linux

  • content
  • comment
  • relevant

linux Add environment variable

one Modify File /etc/environment

After modification   implement source /etc/environment

two modify   ~/.bashrc

export PATH=/opt/cat/src:$PATH

/opt/cat/src Is the path

After modification   source ~/.bashrc

comment

zero Comments

Post reply

Your email address will not be disclosed. Required items have been used * tagging