There isn't one single answer, for each program you need to find what the executable file is called and where it is located (this second part is not always necessary, some executables are placed in specific folders that the system is set to look into from anywhere so you don't need to specify the folder)