Super User is a question and answer site for computer enthusiasts and power users. 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

I had to change some path settings to install node.js in turn I must have edited a file that removed the path from the correct directory, whereby sudo, ps, grep etc. live. I am not sure how to reset this and what is the default order:

/usr/local/bin:/usr/local/bin:/usr/local/bin:$PATH

This is obviously incorrect as there is no sbin, or anything.

Note * I cannot see the files because default doesn't work so cannot make it visible.

Hopefully someone can help.

share|improve this question
up vote 0 down vote accepted

My PATH is as follows. Your requirements may differ but this PATH setting will at least give you shells and tools such as bash, sudo, etc.

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:

to apply PATH settings:

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:

share|improve this answer
    
How would I go about changing it? Without nano that is? – m33bo Dec 5 '13 at 12:22
    
I did it using export PATH= then above. Thanks :) – m33bo Dec 5 '13 at 12:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .