diff --git a/tldr/gum b/tldr/gum index 4bebc5a0..9eefa018 100644 --- a/tldr/gum +++ b/tldr/gum @@ -7,11 +7,11 @@ source: https://github.com/tldr-pages/tldr.git > Make glamorous shell scripts. > See also: `whiptail`, `dialog`. -> More information: . +> More information: . - Interactively pick a specific option to print to `stdout`: -`gum choose "{{option_1}}" "{{option_2}}" "{{option_3}}"` +`gum choose {{"option1" "option2" "..."}}` - Open an interactive prompt for the user to input a string with a specific placeholder: @@ -23,12 +23,12 @@ source: https://github.com/tldr-pages/tldr.git - Show a spinner while a command is taking place with text alongside: -`gum spin {{[-s|--spinner]}} {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}` +`gum spin {{[-s|--spinner]}} {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" {{command}}` - Format text to include emojis: `gum format {{[-t|--type]}} {{emoji}} "{{:smile: :heart: hello}}"` -- Interactively prompt for multi-line text (`` to save) and write to `data.txt`: +- Interactively prompt for multi-line text and write the input to a file: -`gum write > {{data.txt}}` +`gum write > {{path/to/file}}` diff --git a/tldr/linux/systemctl-cat b/tldr/linux/systemctl-cat index 1c768e65..d8ec3c1e 100644 --- a/tldr/linux/systemctl-cat +++ b/tldr/linux/systemctl-cat @@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Show the contents of a unit file for a template: `systemctl cat {{template@}}` + +- Show the contents of a user unit file: + +`systemctl cat --user {{unit}}` diff --git a/tldr/linux/systemctl-disable b/tldr/linux/systemctl-disable index 58d1f5e3..306f037c 100644 --- a/tldr/linux/systemctl-disable +++ b/tldr/linux/systemctl-disable @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Stop a service from running on boot and stop its current execution: `systemctl disable {{unit}} --now` + +- Stop a user service from running on login: + +`systemctl disable --user {{unit}}` diff --git a/tldr/linux/systemctl-edit b/tldr/linux/systemctl-edit index bd2d12a3..4fd806fd 100644 --- a/tldr/linux/systemctl-edit +++ b/tldr/linux/systemctl-edit @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Edit systemd unit files. > More information: . -- Replace a unit file non-destructively: +- Overlay a unit file non-destructively: `sudo systemctl edit {{unit_file}}` @@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Create a new unit file: `sudo systemctl edit {{[-lf|--full --force]}} {{unit_file}}` + +- Overlay a user unit file: + +`systemctl edit --user {{unit_file}}` diff --git a/tldr/linux/systemctl-enable b/tldr/linux/systemctl-enable index 8f7ce889..eadce740 100644 --- a/tldr/linux/systemctl-enable +++ b/tldr/linux/systemctl-enable @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Enable a service to run on boot and start it now: `systemctl enable {{unit}} --now` + +- Enable a user unit to run on login: + +`systemctl enable --user {{unit}}` diff --git a/tldr/linux/systemctl-mask b/tldr/linux/systemctl-mask index c50acf9d..d9f8e2bb 100644 --- a/tldr/linux/systemctl-mask +++ b/tldr/linux/systemctl-mask @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Ensure that the service is shut down while masking: `systemctl mask {{service_name}} --now` + +- Mask a user service: + +`sysemctl mask --user {{service_name}}` diff --git a/tldr/linux/systemctl-restart b/tldr/linux/systemctl-restart index 35c5f09f..ff1042df 100644 --- a/tldr/linux/systemctl-restart +++ b/tldr/linux/systemctl-restart @@ -16,3 +16,7 @@ source: https://github.com/tldr-pages/tldr.git - Restart more than one unit: `systemctl restart {{unit1 unit2 ...}}` + +- Restart a user unit: + +`systemctl restart --user {{unit}}` diff --git a/tldr/linux/systemctl-start b/tldr/linux/systemctl-start index dcb6a35b..a021de9f 100644 --- a/tldr/linux/systemctl-start +++ b/tldr/linux/systemctl-start @@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - Start a unit: `systemctl start {{unit}}` + +- Start a user unit: + +`systemctl start --user {{unit}}` diff --git a/tldr/linux/systemctl-status b/tldr/linux/systemctl-status index d053fe75..9bf19e24 100644 --- a/tldr/linux/systemctl-status +++ b/tldr/linux/systemctl-status @@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - List all units with a specific state: `systemctl status --state {{active|inactive|failed}}` + +- Show the status of a user unit: + +`systemctl status --user {{unit}}` diff --git a/tldr/linux/systemctl-stop b/tldr/linux/systemctl-stop index c91006e4..6241e689 100644 --- a/tldr/linux/systemctl-stop +++ b/tldr/linux/systemctl-stop @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Stop a service and suppress warnings: `systemctl stop --no-warn {{unit}}` + +- Stop a user unit: + +`systemctl stop --user {{unit}}` diff --git a/tldr/yes b/tldr/yes index 49853752..dab98423 100644 --- a/tldr/yes +++ b/tldr/yes @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # yes > Output something repeatedly. -> This command is commonly used to answer yes to every prompt by install commands (such as apt-get). +> This command is commonly used to answer yes to every prompt by install commands (such as `apt-get`). > More information: . - Repeatedly output "message":