Adding binary to ~/.local/bin
What you did was move the geckodriver executable into ~/.local, and rename it to bin. The directory must exist first before mv can move anything into it, or it will assume you intend to rename the file at the destination. You can either delete ~/.local/bin with rm ~/.local/bin and make the directory with mkdir ~/.local/bin, then redownload it, or you can run the command mv ~/.local/bin ~/.local/geckodriver &amp;&amp; mkdir ~/.local/bin &amp;&amp; mv ~/.local/geckodriver ~/.local/bin, so you don't have to redownload it.