Set system-wide environment variables in Ubuntu
Set system-wide environment variables in Ubuntu
Answer:
The recommended way now is to edit the file /etc/environment .
# vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Add you key=value pairs into this file and save it.
Related posts:
- Set session-wide environment variables in Ubuntu
- Check current environment variables
- Print current environment variables
- Install Java Runtime environment under Ubuntu
- How to check which mime types are supported by your Debian/Ubuntu
Post a Comment