Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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.