mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-11-03 22:42:39 +08:00
Co-authored-by: Meinard Francisco <44516102+znarfm@users.noreply.github.com> Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
22 lines
664 B
Markdown
22 lines
664 B
Markdown
# imp
|
|
|
|
> 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 information: <https://github.com/arkane-systems/bottle-imp#usage>.
|
|
|
|
- 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):
|
|
|
|
`imp {{[-c|--command]}} {{command}}`
|
|
|
|
- Shut down systemd and the WSL instance:
|
|
|
|
`imp {{[-u|--shutdown]}}`
|