Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I change them by directly editing the file ? echo $PATH returns this : /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

share|improve this question
It might be a duplicate question. If it is, then please flag it as duplicate. –  Curious Apprentice May 11 '12 at 3:08

1 Answer 1

Global path settings: /etc/environment

User specific settings: ~/.bashrc

The paths are normally updated by the system when you install packages or change configurations e.g. proxy settings. Anyway, you can also change the paths or other environment variables editing the above files directly.

share|improve this answer
Julio: I dont have any file or folder in my system as you mentioned above. –  Curious Apprentice May 11 '12 at 3:54
See help.ubuntu.com/community/EnvironmentVariables for more details. –  Julio May 11 '12 at 4:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.