When Atom editor is installed, it creates a symbolic link in /usr/local/bin folder. Get the new folder path where atom editor installable file resides and run the following command in the terminal
$ ln -s /NewFolder/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
If a link is already created for the atom editor, then you need to remove the existing symbolic link before creating a new one
$ unlink AtomSymbolicLink (OR)
$ rm AtomSymbolicLink