mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 17:59:28 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/linux/imp
Normal file
26
tldr/linux/imp
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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]}}`
|
||||
Reference in New Issue
Block a user