linux add directory to global path

echo “PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/some/folder” >> /etc/environment

Or /etc/profile

Leave a Reply

Your email address will not be published. Required fields are marked *