Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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? –  meeb0 Dec 5 '13 at 12:22
    
I did it using export PATH= then above. Thanks :) –  meeb0 Dec 5 '13 at 12:24

Your Answer

 
discard

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.