How do I add a directory to the PATH?

9 января 2023 — Тацумото Рен

Примечание: Обратите внимание, что эта статья ещё не переведена полностью. Если вы хотите помочь, присоединяйтесь к нашему сообществу и создайте pull request на GitHub.

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.

Теги: faq