5

I am running Ubuntu 15.10. After downloading the Atom editor, I can not find where exactly on my system it is installed. I tried running which atom /usr/bin/atom

However, after navigating to the /bin directory, I can only find a text file named Atom with some code in it, and not the actual application.

I need the application file because I want to select it in my web browser so that I can open files directly into Atom, without saving them into my computer. Any guidance would be appreciated.

Greenonline
  • 2,030
  • 8
  • 20
  • 27
abruzzi26
  • 153
  • 1
  • 1
  • 4

1 Answers1

6

The file atom in /usr/bin is the shell script which launches the atom binary file.

Greenonline
  • 2,030
  • 8
  • 20
  • 27
Bkyn
  • 266
  • 1
  • 7
  • I was not aware this could launch the application. Thanks! – abruzzi26 Sep 10 '16 at 12:30
  • Is there any way to get the application itself, and not the script? – abruzzi26 Sep 10 '16 at 12:47
  • @abruzzi26 I'd take under consideration that there's probably a good reason for the existence of the script and use it for the purpose you asked about. If you think you know better, you could simply [look at the source](https://github.com/atom/atom/blob/master/atom.sh#L94-L98) of the script and find out what it does, now that you know where to find it. – idleberg Sep 12 '16 at 08:25
  • 1
    The atom binary file is in `/usr/share/atom`, if that helps. So running `/usr/share/atom/atom` should launch Atom, although I stand by idleberg's recommendation to use the `/usr/bin/atom` shell script to launch Atom. – Josh Pinto Sep 16 '16 at 12:41
  • Why can't I reach inside `cd ~/usr/bin` with `~` – Giorgi Gvimradze Mar 28 '19 at 15:56
  • 1
    @GiorgiGvimradze Because `~` is your home path and `usr` is located at the root, not your home path. – snh Aug 15 '20 at 19:05
  • @JoshPinto thanks your solution worked. I used it to change default editor in Firezilla. – King Of The Jungle Nov 21 '22 at 01:53