Skip to content

Commit 7e3c17a

Browse files
authored
Add note about configuration PATH environment variable in Linux OS to make installed tools globally be executable in shell from any directory. (#42746)
1 parent f26ecb3 commit 7e3c17a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/core/tools/dotnet-tool-install.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ Global tools are installed in the following directories by default when you spec
6363

6464
Executables are generated in these folders for each globally installed tool, although the actual tool binaries are nested deep into the sibling `.store` directory.
6565

66+
> [!NOTE]
67+
> On Linux after installing a command-line tool with `dotnet tool`, the tool can be executed only from the `$HOME/.dotnet/tools` path.
68+
> To make the tool executable from any directory, update the `PATH` environment variable.
69+
> To make the updated `PATH` environment variable permanent in your shell, update your shell settings.
70+
> For `Bash`, this is the `$HOME/.bashrc` file.
71+
6672
### `--tool-path` tools
6773

6874
Tools with explicit tool paths are stored wherever you specified the `--tool-path` parameter to point to. They're stored in the same way as global tools: an executable binary with the actual binaries in a sibling `.store` directory.

0 commit comments

Comments
 (0)