Est-il possible de reboot the Ubuntu sub-system without restarting my system?
J'ai essayé de use the `shutdown` command after installing some updates, but that doesn't seem to be an option here comme vous pouvez le voir from the following ligne de commande result:
```
~$ bin/rcheck.sh
Reboot required.
~$ sudo shutdown -r now
shutdown: Unable to shutdown system
```
Redémarrer Ubuntu sur Windows sans redémarrer Windows ?
Re: Redémarrer Ubuntu sur Windows sans redémarrer Windows ?
You cannot reboot a distro with a single command. You must shut down and boot up the distro with two commands. If you run **`wsl.exe`** instead of `wsl`, then ça fonctionne both in WSL Bash & CMD.
*View the list of distros and their current state:*
```
wsl.exe -l -v
```
***Shutdown everything:*** [Build 18917+](https://devblogs.microsoft.com/commandline/wsl-2-is-now-available-in-windows-insiders/)
```
wsl.exe --shutdown
```
*Terminate a specific distro:* [Windows 1903+](https://learn.microsoft.com/en-us/windows/wsl/basic-commands#wslexe)
```
wsl.exe -t
```
*Boot up the default distro (marked with `*`):*
```
wsl.exe
```
*Boot up a specific distro:*
```
wsl.exe -d
```
## Anciennes versions
`# PowerShell (admin)
Restart-Service LxssManager
# or CMD (admin)
net stop LxssManager
net start LxssManager
```
*View the list of distros and their current state:*
```
wsl.exe -l -v
```
***Shutdown everything:*** [Build 18917+](https://devblogs.microsoft.com/commandline/wsl-2-is-now-available-in-windows-insiders/)
```
wsl.exe --shutdown
```
*Terminate a specific distro:* [Windows 1903+](https://learn.microsoft.com/en-us/windows/wsl/basic-commands#wslexe)
```
wsl.exe -t
```
*Boot up the default distro (marked with `*`):*
```
wsl.exe
```
*Boot up a specific distro:*
```
wsl.exe -d
```
## Anciennes versions
`# PowerShell (admin)
Restart-Service LxssManager
# or CMD (admin)
net stop LxssManager
net start LxssManager
```