Open the terminal on Ubuntu and type one of the following commands...
1. $ which XXX where XXX - name of the executable file of a software e.g. $ which atom will show the location of executable of Atom text editor
2. $ whereis XXX where XXX - name of the executable file of a software e.g. $ whereis atom will show the location of executable of Atom text editor