Egor Urvanov

PATH

Access, account and payment · PATH variable, list of program folders

PATH is a list of folders in which the terminal looks for a program by the name of a command. If the program’s folder is not in the list, the terminal answers “command not found”. After installing Claude Code on macOS and Linux, you sometimes need to add the ~/.local/bin folder to PATH and open a new terminal window.

Frequently asked questions

What is PATH?

A list of folders where the terminal looks for programs by command name.

Why does the terminal not find claude after installation?

Most often the installation worked but the terminal does not know about the new folder. First open a new terminal window; if the message stays, add ~/.local/bin to PATH. Source: code.claude.com/docs/en/troubleshoot-install.

What does the claude --version command confirm?

Only that the program is found in PATH and starts. It does not check sign-in, the network or file permissions.

Source: Wikipedia: PATH (variable)

Claude Code docs: installation errors

Read more: Claude Code: install and pricing, plans and availability by country

Where it appears · 1

Related terms

Whole glossary

© 2026 Egor Urvanov