RPi3B+
有关程序与开发
有关写作
Linux
Python
开源代码
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