Open Sublime Text 3 from Terminal in macOS Mojave Linux

Start or Launch Sublime Text 3 from terminal by subl or sublime in Linux command line

1- Mac OS:

open /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
subl .orsublime ~/Desktop
echo $PATH
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

2- Linux:

subl .
sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime
sudo ln -s /opt/sublime_text/sublime_text /usr/bin/subl
subl .
or
sublime .

Posting daily about Python, Nuclear Physicist PhD