How to use Free Software to learn Japanese, and more.

How do I add a directory to the PATH?

January 09, 2023 — Tatsumoto

Let's say you want to add ~/.local/bin to the PATH. According to Arch Wiki, to add a directory to the PATH for local usage, add or edit the following environment variable:

export PATH="${PATH}:${HOME}/.local/bin"

Replace ${HOME}/.local/bin with the path of the directory you want to add.

Tags: faq