WIndowswindows上使⽤linux 极简教程
1、从选择Linux发⾏版(如Ubuntu)
2、搜索栏输⼊「功能」,勾选「使⽤于Linux的Windows⼦系统」,点击「确定」
3、重启电脑
4、先进⼊ Ubuntu
Installing, this may take a
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: aka.ms/wslusers
Enter new UNIX username: martin
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
* Documentation: help.ubuntu
* Management: landscape.canonical
* Support: ubuntu/advantage
System information as of Sun Apr 25 01:40:59 CST 2021
System load: 0.52 Processes: 7
Usage of /home: unknown Users logged in: 0
Memory usage: 46% IPv4 address for eth1: 192.168.56.1
Swap usage: 0% IPv4 address for eth2: 10.15.38.103
1 update can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
This message is shown once a day. To disable it please create the
/home/martin/.hushlogin file.
5、后续可以在 或 powerShell中执⾏进⼊ Ubuntu
C:\Users\Martin&
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
切记:⼩⼼执⾏mkdir -rf mnt
6、执⾏cd mnt就进⼊ Windows的⽂件系统
martin@LAPTOP:/mnt/c/Users/Martin$ cd /
martin@LAPTOP:/$ pwd
/
martin@LAPTOP-ANG1G62G:/$ ls
bin dev home lib lib64 media opt root sbin srv tmp var
boot etc init lib32 libx32 mnt proc run snap sys usr
martin@LAPTOP:/$ cd mnt
martin@LAPTOP:/mnt$
linux怎么读取windows文件参考:
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论