How to add to PATH in macOS Big Sur


Example - Add to PATH variable using Terminal.
Example - Add to PATH variable using Terminal.

As a developer, you may want to add to the $PATH environment variable when using the macOS, you can do that using the Terminal command export,

Let's see some examples:

To add a new path to $PATH variable,

$ export PATH=$PATH:~/usr/bin/core_perl

In order to see that in the $PATH variable,

$ echo $PATH
usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin/core_perl


















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap