Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-05 00:21:36 +00:00
parent 34bb7e5998
commit fc43dd50ef
8 changed files with 85 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Delete untracked files except those matching the given patterns:
`git clean {{[-f|--force]}} {{[-e|--exclude]}} {{'*.ext'}} {{[-e|--exclude]}} {{path/to/directory}}/`
`git clean {{[-f|--force]}} {{[-e|--exclude]}} '{{*.ext}}' {{[-e|--exclude]}} {{path/to/directory}}/`
- Delete untracked files and e[x]cluded files (those listed in `.gitignore` and `.git/info/exclude`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# csplit
> Split a file into pieces.
> This generates files named "xx00", "xx01", and so on.
> This generates files named `xx00`, `xx01`, and so on.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/csplit-invocation.html>.
- Split a file in two parts, starting the second one at line 10:

View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl condreload
> This command is an alias of `systemctl try-reload-or-restart`.
- View documentation for the original command:
`tldr systemctl try-reload-or-restart`

View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl condrestart
> This command is an alias of `systemctl try-restart`.
- View documentation for the original command:
`tldr systemctl try-restart`

View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl condstop
> This command is an alias of `systemctl stop`.
- View documentation for the original command:
`tldr systemctl stop`

View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl force-reload
> This command is an alias of `systemctl try-reload-or-restart`.
- View documentation for the original command:
`tldr systemctl try-reload-or-restart`

View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl reload-or-try-restart
> This command is an alias of `systemctl try-reload-or-restart`.
- View documentation for the original command:
`tldr systemctl try-reload-or-restart`

23
tldr/unsetopt Normal file
View File

@@ -0,0 +1,23 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# unsetopt
> Unset options for the Z shell (`zsh`).
> Note: Zsh options are case-insensitive and underscores are ignored.
> See also: `setopt` to set options.
> More information: <https://zsh.sourceforge.io/Doc/Release/Options.html>.
- List all currently unset options (use `setopt` to list set options):
`unsetopt`
- Unset a specific option:
`unsetopt {{option_name}}`
- Unset multiple options at once:
`unsetopt {{option_name1 option_name2 ...}}`