You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add note about configuration PATH environment variable in Linux OS to make installed tools globally be executable in shell from any directory. (#42746)
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-tool-install.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,12 @@ Global tools are installed in the following directories by default when you spec
63
63
64
64
Executables are generated in these folders for each globally installed tool, although the actual tool binaries are nested deep into the sibling `.store` directory.
65
65
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
+
66
72
### `--tool-path` tools
67
73
68
74
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