I can run .NET Core on Windows, Mac, or a dozen Linuxes. On my Ubuntu installation I can check what version I have installed and where it is like this:
我可以在Windows,Mac或十几个Linux上运行.NET Core。 在我的Ubuntu安装上,我可以检查已安装的版本以及它的位置:
$ dotnet --version
2.1.403
$ which dotnet
/usr/bin/dotnet
If we interrogate that dotnet file we see it's a link to elsewhere:
如果我们查询该dotnet文件,我们会看到它是指向其他位置的链接:
$ ls -alogF /usr/bin/dotnet
lrwxrwxrwx 1 22 Sep 19 03:10 /usr/bin/dotnet -> ../share/dotnet/dotnet*
If we head over there we see similar stuff as we do on Windows.
如果我们去那里,我们会看到与Windows相似的内容。
![Side by side DotNet installs Side by side DotNet installs](https://i-blog.csdnimg.cn/blog_migrate/90c506e8101e5903617a1cd5b578e2e9.png)
Basically c:\program files\dotnet is the same as /share/dotnet.
基本上c:\ program files \ dotnet与/ share / dotnet相同。
$ cd ../share/dotnet
$ ll
total 136
drwxr-xr-x 1 root root 4096 Oct 5 19:47 ./
drwxr-xr-x 1 root root 4096 Aug 1 17:44 ../
drwxr-xr-x 1 root root 4096 Feb 13 2018 additionalDeps/
-rwxr-xr-x 1 root root 105704 Sep 19 03:10 dotnet*
drwxr-xr-x 1 root root 4096 Feb 13 2018 host/
-rw-r--r-- 1 root root 1083 Sep 19 03:10 LICENSE.txt
drwxr-xr-x 1 root root 4096 Oct 5 19:48 sdk/
drwxr-xr-x 1 root root 4096 Aug 1 18:07 shared/
drwxr-xr-x 1 root root 4096 Feb 13 2018 store/
-rw-r--r-- 1 root root 27700 Sep 19 03:10 ThirdPartyNotices.txt
$ ls sdk
2.1.4 2.1.403 NuGetFallbackFolder
$ ls shared
Microsoft.AspNetCore.All Microsoft.AspNetCore.App Microsoft.NETCore.App
$ ls shared/Microsoft.NETCore.App/
2.0.5 2.1.5
Looking in directories works to figure out what SDKs and R