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

I know I can launch sublime from the command line with subl, but how do I open it with the current directory I'm in appearing in the file viewer panel on the left?

share|improve this question

You can pass a file name or directory to the subl command without any extra arguments. For example, to open the current directory in the sidebar, just run:

subl .

To open a specific file, just pass its name:

subl ~/.bashrc

Run subl --help to get a summary of command-line options.

share|improve this answer

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.