RPi3B+
About Development
Write
Linux
Python
Open-source
PHP
Windows
Add /path/to/directory to $PATH
/path/to/directory
$ export PATH=/path/to/directory:$PATH
Write a /etc/profile.d/add_to_path.sh file:
/etc/profile.d/add_to_path.sh
export PATH=/path/to/directory:$PATH
Then:
$ sudo chmod +x /etc/profile.d/add_to_path.sh
Reboot.
$ sudo visudo
Add in secure_path="...", and reboot.
secure_path="..."
$ echo $PATH