Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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 –  Someone Like You 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

 
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.