I downloaded atom-amd64.tar.gz from this page. I then moved it from Downloads to a folder I made in Documents called Atom. Then I used tar -zxvf atom-amd64.tar.gz. If I type ./atom from inside /root/Documents/Atom, the program launches. However, I want to be able to launch it from anywhere by simply typing atom, like I can with gedit. Ex: gedit test.c would open a document called test.c with gedit. I've tried looking this up, but can't figure out what is going wrong. I read that I may need to add it to a/my/the PATH, but when I did whereis atom, all I got was "atom:" with no path following. I don't want to start messing with adding stuff to PATH unless I know for sure that's what I need to do, and if there's no better way (such as placing atom in a different directory)
Apologies for the terrible formatting.