Here is how to look at the PATH under #Linux, #macOS, #FreeBSD or #Unix. Say find if JAVA_HOME or "games" dir in the path (bash/sh/ksh syntax): tr ":" "\n"<<<"$PATH" | grep games ## OR ## grep -o games <<<"$PATH"
https://files.mastodon.social/media_attachments/files/111/749/044/369/327/207/original/5b097954a3c04f96.png