windows11 上使用wsl相关

# 启动(会启动默认的系统)
wsl

# 启动CentOS
wsl -d CentOS

# 如果需要以root身份登录,可以使用以下命令
wsl -u root -d CentOS

#centos 查看版本信息
cat /etc/redhat-release
cat /etc/os-release
cat /etc/system-release-cpe

# 启动第二种方式,如果系统是通过MicrosoftStore安装,打开MicrosoftStore,搜索指定的系统,然后可以打开(如图)。

posted @ 2024-06-12 15:02  challengesoflife  阅读(1)  评论(0编辑  收藏  举报