How can I open the Atom editor from the command line in OS X?

When Atom installs, it automatically creates a symbolic link in your /usr/local/bin folder. However, in case it hasn’t, you can create it yourself on your Mac:

ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom

Now you can use atom folder_name to open a folder and atom file_name to open a file.

Leave a Comment