Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 have the sublime text editor located in usr/bin. How can I make it the default editor so I can do sublime /var/www/test.php?

And can I change the default terminal to yakuake?

share|improve this question
up vote 1 down vote accepted

Even without setting it as the default, sublime /var/www/test.php should work (as long as /usr/bin is in your PATH and sublime has the executable bit set). To set the default program for something, look at the documentation for update-alternatives.

share|improve this answer
I know how to change the default editor terminal now, just one more question what is the default permission of /usr/bin i changed the permission so that i can paste sublime into that folder and now that it's done, i would like to reset the default permission – Lynob Feb 13 '12 at 10:05
@SomeoneLikeYou The directory and files are usually rwxr-xr-x. – Chris Down Feb 13 '12 at 12:29

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.