imp
linux
A helper to use native systemd support under WSL (Windows Subsystem for Linux). Note: To run these from Windows rather than an already-running distribution, precede them with `wsl`.
More info →Options (4)
-i, --initializebooleanInitialize the helper functions and keep WSL running until explicit shutdown (run once, at start)
Example:
imp {{[-i|--initialize]}}-s, --shellbooleanRun a shell inside a systemd user session
Example:
imp {{[-s|--shell]}}-c, --commandbooleanRun a specified command inside a systemd user session (preserves working directory)
Example:
imp {{[-c|--command]}} {{command}}-u, --shutdownbooleanShut down systemd and the WSL instance
Example:
imp {{[-u|--shutdown]}}Examples (4)
Initialize the helper functions and keep WSL running until explicit shutdown (run once, at start)
imp [-i|--initialize]Run a shell inside a systemd user session
imp [-s|--shell]Run a specified command inside a systemd user session (preserves working directory)
Shut down systemd and the WSL instance
imp [-u|--shutdown]made by @shridhargupta | data from tldr-pages