no message
This commit is contained in:
@@ -28,14 +28,14 @@ $ cat /etc/debian_version
|
|||||||
|
|
||||||
Dans l'<u>invite de commande</u>:
|
Dans l'<u>invite de commande</u>:
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
wsl --list --verbose
|
wsl --list --verbose
|
||||||
NAME STATE debian_version
|
NAME STATE debian_version
|
||||||
|
|
||||||
* Debian Running 1
|
* Debian Running 1
|
||||||
```
|
```
|
||||||
|
|
||||||
```dos
|
```powershell
|
||||||
wsl --list --running
|
wsl --list --running
|
||||||
Distributions du sous-système Windows pour Linux :
|
Distributions du sous-système Windows pour Linux :
|
||||||
Debian (par défaut)
|
Debian (par défaut)
|
||||||
@@ -46,7 +46,7 @@ Même en quittant la distro (`$ exit`), elle y reste dispo.
|
|||||||
|
|
||||||
#### Quitter une distro:
|
#### Quitter une distro:
|
||||||
|
|
||||||
> ```
|
> ```powershell
|
||||||
> wsl --terminate Debian
|
> wsl --terminate Debian
|
||||||
> wsl -t 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
|
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:
|
#### Pour démarrer la distro:
|
||||||
|
|
||||||
```bash
|
```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
|
Pour supprimer Debian
|
||||||
Dans l'invite de commande:
|
Dans l'invite de commande:
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
C:\Users\enzo2>debian clean
|
C:\Users\enzo2>debian clean
|
||||||
C:\Users\enzo2>debian --help
|
C:\Users\enzo2>debian --help
|
||||||
```
|
```
|
||||||
@@ -176,7 +190,7 @@ $HOME
|
|||||||
|
|
||||||
wr** evaluates to the absolute path to your Windows user's root.
|
wr** evaluates to the absolute path to your Windows user's root.
|
||||||
|
|
||||||
```
|
```bash
|
||||||
export wr=~/../../mnt/c/Users/<Windows Username>/
|
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:
|
Lancer des commandes Linux depuis l'Invite de commandes ou Powershell:
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
C:\Users\enzo2>wsl ls -la | findstr "Documents"
|
C:\Users\enzo2>wsl ls -la | findstr "Documents"
|
||||||
drwxrwxrwx 1 enzo2 enzo2 512 Mar 31 08:51 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
|
lrwxrwxrwx 1 enzo2 enzo2 28 Mar 28 17:59 Mes documents -> /mnt/c/Users/enzo2/Documents
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
C:\Users\enzo2>dir | wsl "Documents"
|
C:\Users\enzo2>dir | wsl "Documents"
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
C:\Users\enzo2>wsl ls -la "/mnt/c/Program Files"
|
C:\Users\enzo2>wsl ls -la "/mnt/c/Program Files"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user