no message
This commit is contained in:
@@ -28,14 +28,14 @@ $ cat /etc/debian_version
|
||||
|
||||
Dans l'<u>invite de commande</u>:
|
||||
|
||||
```
|
||||
```powershell
|
||||
wsl --list --verbose
|
||||
NAME STATE debian_version
|
||||
|
||||
* Debian Running 1
|
||||
```
|
||||
|
||||
```dos
|
||||
```powershell
|
||||
wsl --list --running
|
||||
Distributions du sous-système Windows pour Linux :
|
||||
Debian (par défaut)
|
||||
@@ -46,7 +46,7 @@ Même en quittant la distro (`$ exit`), elle y reste dispo.
|
||||
|
||||
#### Quitter une distro:
|
||||
|
||||
> ```
|
||||
> ```powershell
|
||||
> wsl --terminate Debian
|
||||
> wsl -t Debian
|
||||
>
|
||||
@@ -57,12 +57,27 @@ Même en quittant la distro (`$ exit`), elle y reste dispo.
|
||||
|
||||
|
||||
|
||||
#### Pour passer à wsl 2:
|
||||
#### Pour passer la distribution à wsl 2:
|
||||
|
||||
```
|
||||
```powershell
|
||||
wsl --set-version Debian 2
|
||||
```
|
||||
|
||||
https://docs.microsoft.com/fr-fr/windows/wsl/wsl2-kernel
|
||||
|
||||
Différences entre wsl 1 et 2:
|
||||
https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes
|
||||
|
||||
|
||||
|
||||
#### Définir wsl 2 comme version par défaut:
|
||||
|
||||
```powershell
|
||||
wsl --set-default-version 2
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Pour démarrer la distro:
|
||||
|
||||
```bash
|
||||
@@ -77,8 +92,7 @@ NAME STATE VERSION
|
||||
```
|
||||
|
||||
|
||||
Différences entre wsl 1 et 2:
|
||||
https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -97,7 +111,7 @@ wsl --import Debian C:\Users\bruno\debian C:\Users\bruno\debian.tar
|
||||
Pour supprimer Debian
|
||||
Dans l'invite de commande:
|
||||
|
||||
```
|
||||
```powershell
|
||||
C:\Users\enzo2>debian clean
|
||||
C:\Users\enzo2>debian --help
|
||||
```
|
||||
@@ -176,7 +190,7 @@ $HOME
|
||||
|
||||
wr** evaluates to the absolute path to your Windows user's root.
|
||||
|
||||
```
|
||||
```bash
|
||||
export wr=~/../../mnt/c/Users/<Windows Username>/
|
||||
```
|
||||
|
||||
@@ -207,17 +221,17 @@ cat ~/.ssh/id_rsa.pub | clip.exe
|
||||
|
||||
Lancer des commandes Linux depuis l'Invite de commandes ou Powershell:
|
||||
|
||||
```
|
||||
```powershell
|
||||
C:\Users\enzo2>wsl ls -la | findstr "Documents"
|
||||
drwxrwxrwx 1 enzo2 enzo2 512 Mar 31 08:51 Documents
|
||||
lrwxrwxrwx 1 enzo2 enzo2 28 Mar 28 17:59 Mes documents -> /mnt/c/Users/enzo2/Documents
|
||||
```
|
||||
|
||||
```
|
||||
```powershell
|
||||
C:\Users\enzo2>dir | wsl "Documents"
|
||||
```
|
||||
|
||||
```
|
||||
```powershell
|
||||
C:\Users\enzo2>wsl ls -la "/mnt/c/Program Files"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user