window里的wsl,root密码


window wsl相关配置
1.查看当前系统安装的linux:
PS C:\> wslconfig /l
适用于 Linux 的 Windows 子系统:
Ubuntu (默认)
2.查看ubuntu的配置帮助
PS C:\> ubuntu /h
Launches or configures a Linux distribution.
Usage:
<no args>
Launches the user's default shell in the user's home directory.
install [--root]
Install the distribuiton and do not launch the shell when complete.
--root
Do not create a user account and leave the default user set to root.
run <command line>
Run the provided command line in the current working directory. If no
command line is provided, the default shell is launched.
config [setting [value]]
Configure settings for this distribution.
Settings:
--default-user <username>
Sets the default user to <username>. This must be an existing user.
help
Print usage information.
3.注:当wsl里的root密码忘了时,以管理员身份打开cmd或powershell:
PS C:\> ubuntu config --default-user root
PS C:\> wsl
root@universe:/mnt/c# passwd
Enter new UNIX password:

优质内容筛选与推荐>>
1、GC垃圾收集器分类
2、AWS S3 递归上传文件和递归下载文件, 以及S3之间拷贝文件夹
3、mvc开发模式下进行文件的下载
4、Android最佳性能实践(二)——分析内存的使用情况
5、【神经网络与深度学习】【C/C++】比较OpenBLAS,Intel MKL和Eigen的矩阵相乘性能


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号