Linux

WSL

2022-02-11  本文已影响0人  JaedenKil
  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
上一篇下一篇

猜你喜欢

热点阅读