Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-24 00:19:14 +00:00
parent 67b1d9150b
commit ffb5ac3c0a
8 changed files with 165 additions and 1 deletions

13
tldr/conda-deactivate Normal file
View File

@@ -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: <https://docs.conda.io/projects/conda/en/latest/commands/deactivate.html>.
- Deactivate a conda environment:
`conda deactivate`

29
tldr/conda-info Normal file
View File

@@ -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: <https://docs.conda.io/projects/conda/en/latest/commands/info.html>.
- 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`

29
tldr/conda-list Normal file
View File

@@ -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: <https://docs.conda.io/projects/conda/en/stable/commands/list.html>.
- 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}}`

18
tldr/conda-rename Normal file
View File

@@ -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: <https://docs.conda.io/projects/conda/en/latest/commands/rename.html>.
- 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}}`

29
tldr/linux/dnf-clean Normal file
View File

@@ -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: <https://dnf.readthedocs.io/en/latest/command_ref.html#clean-command>.
- 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`

View File

@@ -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: <https://www.freedesktop.org/software/systemd/man/systemctl.html#cancel%20JOB%E2%80%A6>.
- 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}}`

17
tldr/osx/rev Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# rev
> Reverse lines of text.
> More information: <https://keith.github.io/xcode-man-pages/rev.1.html>.
- Reverse each line in a file to `stdout`:
`rev {{path/to/file}}`
- Reverse each line from `stdin` to `stdout`:
`{{command}} | rev`

View File

@@ -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]}}`