then you’ll need to add that directory to your PATH environment variable. code example
Example 1: how to add a directory to path in linux
export PATH="$HOME/bin:$PATH"
Example 2: how to add a directory to path in linux
nano ~/.bashrc
export PATH="$HOME/bin:$PATH"
nano ~/.bashrc