Get sublime text instead of gedit in ubuntu

Dul’s Blog
1 min readSep 6, 2020

The sudden crashes of gedit or difficulty of vim are over…

I used to be a windows user, had got used to sublime-text. I shifted over to Ubuntu and still wanted to use sublime text.

In ubuntu terminal to get a new file in gedit we use.

sudo gedit helloworld.php

Then we get the file called helloworld.php and we write code in that, now to get sublime-text. I m assuming at this point as an user you have got sublime text installed to ubuntu. In the terminal type the command as given below.

subl helloworld.php

Then in sublime text a new file called helloworld.php is open. Type the code and save.

Have fun coding…

--

--