The terminal can find the program if you specify the relative path to the program…
…or when you specify the absolute path.
If you want to be able to run
ioquake3 as a command in the terminal you can create a shell script and place it in a directory listed in the PATH environment variable. You can see the list by running
echo $PATH in a terminal.
I personally use a shell script located at
/home/$USERNAME/bin/ioquake3 containing the following text
Directions for creating the script:
- Open your home directory in a file browser and create a directory named “bin” if it does not exist.
- Open a text editor, copy and paste the above commands (correct the path to quake3) and save it as “ioquake3” (no file extension) in the bin directory in your home directory.
- In the file browser open the bin directory in your home directory. Right click ioquake3 and click Properties. Change to the Permissions tab. Check the box for “allow executing as a program”.
- You may need to close and re-open the terminal for /home/$USERNAME/bin to be added to PATH.
ioquake3 in the terminal.