win10开启子系统命令

  1. 以管理员权限运行powershell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. 重启电脑之后到应用商店搜索linux,下载喜欢的系统安装
  2. 安装完成之后,到CMD或者powershell执行bash进入子系统
  3. 子系统中/mnt/下对应各个磁盘,所有用户对普通文件都有RWX权限
  4. 设置windows文件夹为区分大小写的命令
#用disable关闭区分大小写
fsutil.exe file SetCaseSensitiveInfo 'F:\aaa' enable

替换软件源为阿里的源

先备份原来的源
sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak

再修改源为阿里源
sudo vi /etc/apt/sources.list

删除原来的内容全部替换成以下内容

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

更新源
sudo apt-get update

你可能感兴趣的:(实用,学习)