From ffb5ac3c0ad1ce8926648060fc9742aa5c0afc78 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 24 Sep 2025 00:19:14 +0000 Subject: [PATCH] Update cheatsheets --- tldr/conda-deactivate | 13 +++++++++++++ tldr/conda-info | 29 +++++++++++++++++++++++++++++ tldr/conda-list | 29 +++++++++++++++++++++++++++++ tldr/conda-rename | 18 ++++++++++++++++++ tldr/linux/dnf-clean | 29 +++++++++++++++++++++++++++++ tldr/linux/systemctl-cancel | 25 +++++++++++++++++++++++++ tldr/osx/rev | 17 +++++++++++++++++ tldr/pulumi-login | 6 +++++- 8 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 tldr/conda-deactivate create mode 100644 tldr/conda-info create mode 100644 tldr/conda-list create mode 100644 tldr/conda-rename create mode 100644 tldr/linux/dnf-clean create mode 100644 tldr/linux/systemctl-cancel create mode 100644 tldr/osx/rev diff --git a/tldr/conda-deactivate b/tldr/conda-deactivate new file mode 100644 index 00000000..81795042 --- /dev/null +++ b/tldr/conda-deactivate @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda deactivate + +> Deactivate a conda environment. +> More information: . + +- Deactivate a conda environment: + +`conda deactivate` diff --git a/tldr/conda-info b/tldr/conda-info new file mode 100644 index 00000000..5a89c83f --- /dev/null +++ b/tldr/conda-info @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda info + +> Display details about the conda installation. +> More information: . + +- Show all information: + +`conda info {{[-a|--all]}}` + +- Display base environment path: + +`conda info --base` + +- List all conda environments: + +`conda info {{[-e|--envs]}}` + +- List environment variables: + +`conda info {{[-s|--system]}}` + +- Display list of channels with tokens exposed: + +`conda info --unsafe-channels` diff --git a/tldr/conda-list b/tldr/conda-list new file mode 100644 index 00000000..3275f06d --- /dev/null +++ b/tldr/conda-list @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda list + +> List installed packages in a conda environment. +> More information: . + +- List all packages in the current environment: + +`conda list` + +- List packages in the named environment: + +`conda list {{[-n|--name]}} {{environment}}` + +- List packages installed in a given path: + +`conda list {{[-p|--prefix]}} {{path/to/environment}}` + +- Filter installed packages using `regex`: + +`conda list {{regex}}` + +- Save packages for future use: + +`conda list {{[-e|--export]}} > {{path/to/package-list.txt}}` diff --git a/tldr/conda-rename b/tldr/conda-rename new file mode 100644 index 00000000..b87b97d3 --- /dev/null +++ b/tldr/conda-rename @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda rename + +> Rename an existing conda environment. +> The base environment and the currently-active environment cannot be renamed. +> More information: . + +- Rename an environment via its name: + +`conda rename {{[-n|--name]}} {{current_name}} {{new_name}}` + +- Rename an environment via its full path (i.e. prefix): + +`conda rename {{[-p|--prefix]}} {{path/to/env}} {{new_name}}` diff --git a/tldr/linux/dnf-clean b/tldr/linux/dnf-clean new file mode 100644 index 00000000..38e0459d --- /dev/null +++ b/tldr/linux/dnf-clean @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# dnf clean + +> Perform cleanup of temporary files kept for Red Hat-based repositories. +> More information: . + +- Remove cache files generated from the repository metadata: + +`dnf clean dbcache` + +- Mark the repository metadata as expired: + +`dnf clean expire-cache` + +- Remove repository metadata: + +`dnf clean metadata` + +- Remove any cached packages from the system: + +`dnf clean packages` + +- Clean up all DNF repository specific metadata and cached files (all of the above): + +`dnf clean all` diff --git a/tldr/linux/systemctl-cancel b/tldr/linux/systemctl-cancel new file mode 100644 index 00000000..86d8c15b --- /dev/null +++ b/tldr/linux/systemctl-cancel @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl cancel + +> Cancel one or more pending jobs in the system manager or user manager. +> More information: . + +- Cancel a job by its numeric ID: + +`systemctl cancel {{job_id}}` + +- Cancel multiple jobs: + +`systemctl cancel {{job_id1 job_id2 ...}}` + +- Cancel all pending jobs: + +`systemctl cancel` + +- Cancel a job in the user service manager: + +`systemctl --user cancel {{job_id}}` diff --git a/tldr/osx/rev b/tldr/osx/rev new file mode 100644 index 00000000..eaeaa567 --- /dev/null +++ b/tldr/osx/rev @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, osx] +source: https://github.com/tldr-pages/tldr.git +--- +# rev + +> Reverse lines of text. +> More information: . + +- Reverse each line in a file to `stdout`: + +`rev {{path/to/file}}` + +- Reverse each line from `stdin` to `stdout`: + +`{{command}} | rev` diff --git a/tldr/pulumi-login b/tldr/pulumi-login index 87304d22..b54c26f7 100644 --- a/tldr/pulumi-login +++ b/tldr/pulumi-login @@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git `pulumi login {{url}}` -- Use Pulumi locally, independent of a Pulumi Cloud: +- Use Pulumi locally, independent of a cloud backend: `pulumi login {{[-l|--local]}}` + +- Display help: + +`pulumi login {{[-h|--help]}}`