This blog post will show you how to add .NET to your Linux PATH and set the OS to use the correct version.
Check .NET SDK Path
To check and find your .NET 6 install run the following command.
The output of the command will show you the path as shown below.
Add to Path
To add the above path to the PATH, I will add the following line to my ~/.bash_profile
After saving the file, reload the shell using the command below.