I'm using Microsoft's dotnet in linux (ubuntu), and it has dial-home telemetry. I want to disable it, and the instructions say:
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
I've read that .profile
, .bashrc
, .bash_profile
, /etc/environment
, etc, have differences in when they are read, if at all.
So I'm not sure where to put DOTNET_CLI_TELEMETRY_OPTOUT=1
? I want it to always be loaded, regardless whether I login without desktop, login with desktop, ssh in remotely, start a terminal, start a terminal from a parent terminal, etc.
Which file (or files) should I put it in? And how would I do it for all users?