Following advice from a course, I added the following line to my .bashrc:
Now, when I open a terminal window I get this directory shown twice:
$ echo $PATH /home/dodgycoder/kafka_2.12-2.3.1/bin:/home/dodgycoder/kafka_2.12-2.3.1/bin:/usr/local/bin:...
Why is this? What's the correct way to add a directory to your PATH?
I'm using Fedora with the Gnome desktop. I confirm I only have the above line just once in my .bashrc and it's not defined anywhere else.