Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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 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.