WSL

  1. Install Ubuntu from windows store
  2. To use this feature, one first needs to use "Turn Windows features on or off" and select "Windows Subsystem for Linux", click OK, reboot, and use this app. (Not sure about this, the option on my PC is enabled by default")
  3. Install something, for instance dos2unix
madhatter@xxx:~$ sudo apt install dos2unix
[sudo] password for madhatter:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dos2unix
madhatter@xxx:~$ sudo apt update
madhatter@xxx:~$ sudo apt-get install dos2unix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dos2unix
0 upgraded, 1 newly installed, 0 to remove and 115 not upgraded.
Need to get 374 kB of archives.
After this operation, 1342 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 dos2unix amd64 7.4.0-2 [374 kB]
Fetched 374 kB in 3s (133 kB/s)
Selecting previously unselected package dos2unix.
(Reading database ... 32223 files and directories currently installed.)
Preparing to unpack .../dos2unix_7.4.0-2_amd64.deb ...
Unpacking dos2unix (7.4.0-2) ...
Setting up dos2unix (7.4.0-2) ...
Processing triggers for man-db (2.9.1-1) ...
  1. Access windows files:
madhatter@xxx:~$ ls -al /mnt/c/Users/yyy/Pictures/
total 363176
drwxrwxrwx 1 madhatter madhatter      4096 Nov 30 19:23  .
drwxrwxrwx 1 madhatter madhatter      4096 Feb  8 18:16  ..
-rwxrwxrwx 1 madhatter madhatter     12426 May  9  2019  zzz.svg
  1. Access adb devices connected to windows via WSL
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容