I tried adding a path to my PATH variable by making changes in /etc/environments. However, now when I do echo $PATH, the PATH variable contains even lesser path entries than it had earlier. I did reboot my computer too.
It must now be picking the value of PATH variable from some other file or the value being read from etc/environment is now being overridden by some other file.
I am unable to fix this. Please help.
Thanks.
/etc/environment
? – Zanna Aug 28 '16 at 11:28/etc/environment
doesn't work like that. YOu'll add one value per line – Anwar Aug 28 '16 at 11:30$
expansion in/etc/environment
as @Anwar explains – Zanna Aug 28 '16 at 11:31/etc/environment
. When it comes to PATH it's probably better to leave the default/etc/environment
as is, and modify PATH via a/etc/profile.d/*.sh
file. – Gunnar Hjalmarsson Aug 28 '16 at 11:52