Ubuntu的基本操作

查看操作系统版本

https://www.hostingadvice.com/how-to/ubuntu-show-version/

clu@sha01vmdev08:~/source/github$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

查看架构architecture

https://askubuntu.com/questions/189640/how-to-find-architecture-of-my-pc-and-ubuntu

clu@sha01vmdev08:~/source/github$ uname -m
x86_64

 

设置代理并立即生效

Setting up Proxy Settings for apt-get and wget in Ubuntu 

 

 

 

 

如何安装.net core 3.0 preview

https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current 

Register Microsoft key and feed

Before installing .NET, you'll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine.

Open a terminal and run the following commands:

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

安装的时候发现安装不了,使用wget -v url来排查

Install the .NET SDK

Update the products available for installation, then install the .NET SDK.

In your terminal, run the following commands:

 

 

 

 

 

 

 

 

 

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄