mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/gdm-binary
Normal file
12
tldr/gdm-binary
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdm-binary
|
||||
|
||||
> This command is an alias of `gdm`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr gdm`
|
||||
14
tldr/gdm-restart
Normal file
14
tldr/gdm-restart
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdm-restart
|
||||
|
||||
> Restart the GNOME Display Manager (GDM) daemon.
|
||||
> See also: `gdm`, `gdm-binary`, `gdmsetup`, `gdm-stop`, `gdm-safe-restart`.
|
||||
> More information: <https://manned.org/gdm>.
|
||||
|
||||
- Restart the GNOME Display Manager application:
|
||||
|
||||
`gdm-restart`
|
||||
14
tldr/gdm-safe-restart
Normal file
14
tldr/gdm-safe-restart
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdm-safe-restart
|
||||
|
||||
> Restart the GNOME Display Manager (GDM) only when all users have logged out.
|
||||
> See also: `gdm`, `gdm-binary`, `gdmsetup`, `gdm-stop`, `gdm-restart`.
|
||||
> More information: <https://manned.org/gdm>.
|
||||
|
||||
- Restart the GNOME Display Manager application when all users have logged out:
|
||||
|
||||
`gdm-safe-restart`
|
||||
14
tldr/gdm-stop
Normal file
14
tldr/gdm-stop
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdm-stop
|
||||
|
||||
> Immediately stop running the GNOME Display Manager (GDM).
|
||||
> See also: `gdm`, `gdm-binary`, `gdmsetup`, `gdm-restart`, `gdm-safe-restart`.
|
||||
> More information: <https://manned.org/gdm>.
|
||||
|
||||
- Stop the GNOME Display Manager application:
|
||||
|
||||
`gdm-stop`
|
||||
15
tldr/gdmsetup
Normal file
15
tldr/gdmsetup
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gdmsetup
|
||||
|
||||
> Launch a GUI for configuring the GNOME Display Manager (GDM).
|
||||
> Results in edited files in either `/etc/X11/gdm/gdm.conf` or `/etc/gdm/gdm.conf` depending on distribution and environment.
|
||||
> See also: `gdm`, `gdm-binary`, `gdm-stop`, `gdm-restart`, `gdm-safe-restart`.
|
||||
> More information: <https://manned.org/gdm>.
|
||||
|
||||
- Run the GNOME Display Manager GUI configuration application:
|
||||
|
||||
`gdmsetup`
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Initialize a new GitHub CLI extension project in a directory of the same name:
|
||||
|
||||
`gh extension create {{extension_name}}`
|
||||
`gh {{[ext|extension]}} create {{extension_name}}`
|
||||
|
||||
- Install an extension from a GitHub repository:
|
||||
|
||||
`gh extension install {{owner}}/{{repository}}`
|
||||
`gh {{[ext|extension]}} install {{owner}}/{{repository}}`
|
||||
|
||||
- List installed extensions:
|
||||
|
||||
`gh extension list`
|
||||
`gh {{[ext|extension]}} list`
|
||||
|
||||
- Upgrade a specific extension:
|
||||
|
||||
`gh extension upgrade {{extension_name}}`
|
||||
`gh {{[ext|extension]}} upgrade {{extension_name}}`
|
||||
|
||||
- Upgrade all extensions:
|
||||
|
||||
`gh extension upgrade --all`
|
||||
`gh {{[ext|extension]}} upgrade --all`
|
||||
|
||||
- List installed extensions:
|
||||
|
||||
`gh extension list`
|
||||
`gh {{[ext|extension]}} list`
|
||||
|
||||
- Remove an extension:
|
||||
|
||||
`gh extension remove {{extension_name}}`
|
||||
`gh {{[ext|extension]}} remove {{extension_name}}`
|
||||
|
||||
- Display help about a subcommand:
|
||||
|
||||
`gh extension {{subcommand}} --help`
|
||||
`gh {{[ext|extension]}} {{subcommand}} --help`
|
||||
|
||||
37
tldr/gron
Normal file
37
tldr/gron
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gron
|
||||
|
||||
> Transform `JSON` into individual assignments for easier management.
|
||||
> More information: <https://manned.org/gron>.
|
||||
|
||||
- Process `JSON` file into individual assignments:
|
||||
|
||||
`gron {{path/to/file|url}}`
|
||||
|
||||
- Don't sort output data:
|
||||
|
||||
`gron --no-sort {{path/to/file|url}}`
|
||||
|
||||
- Disable certificate validation:
|
||||
|
||||
`gron {{[-k|--insecure]}} {{url}}`
|
||||
|
||||
- Display values of `gron` assignments:
|
||||
|
||||
`gron {{[-v|--values]}} {{path/to/file|url}}`
|
||||
|
||||
- Turn assignments converted with `gron` back into `JSON`:
|
||||
|
||||
`gron {{[-u|--ungron]}} {{path/to/file|url}}`
|
||||
|
||||
- Process individual lines of input as separate `JSON` objects:
|
||||
|
||||
`gron {{[-s|--stream]}} {{path/to/file|url}}`
|
||||
|
||||
- Represent processed data as a `JSON` stream:
|
||||
|
||||
`gron {{[-j|--json]}} {{path/to/file|url}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gst-discoverer-1.0
|
||||
|
||||
> Display file metadata and stream information.
|
||||
> More information: <https://manned.org/man/gst-discoverer-1.0.1>.
|
||||
> More information: <https://manned.org/gst-discoverer-1.0.1>.
|
||||
|
||||
- Print file metadata:
|
||||
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show the amount spent on food from the `assets:cash` account:
|
||||
|
||||
`hledger print assets:cash | hledger {{-f|--file}} - {{[-I|--ignore-assertions]}} aregister expenses:food`
|
||||
`hledger print assets:cash | hledger {{[-f|--file]}} - {{[-I|--ignore-assertions]}} aregister expenses:food`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# info
|
||||
|
||||
> Read documentation stored in the info format.
|
||||
> More information: <https://manned.org/man/info>.
|
||||
> More information: <https://manned.org/info>.
|
||||
|
||||
- Start reading top-level directory menu:
|
||||
|
||||
|
||||
2
tldr/jj
2
tldr/jj
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
|
||||
|
||||
`jj describe {{[-r|--revision]}} {{revsets}}`
|
||||
`jj {{[desc|describe]}} {{[-r|--revision]}} {{revsets}}`
|
||||
|
||||
- Create a new commit/revision on top of a given revision :
|
||||
|
||||
|
||||
@@ -11,24 +11,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new bookmark at the given revision:
|
||||
|
||||
`jj bookmark create {{[-r|--revision]}} {{revision}} {{name}}`
|
||||
`jj {{[b|bookmark]}} {{[c|create]}} {{[-r|--revision]}} {{revision}} {{name}}`
|
||||
|
||||
- List all existing bookmarks and their targets:
|
||||
|
||||
`jj bookmark list`
|
||||
`jj {{[b|bookmark]}} {{[l|list]}}`
|
||||
|
||||
- Move an existing bookmark to another revision:
|
||||
|
||||
`jj bookmark move {{[-t|--to]}} {{revision}} {{name}}`
|
||||
`jj {{[b|bookmark]}} {{[m|move]}} {{[-t|--to]}} {{revision}} {{name}}`
|
||||
|
||||
- Track given remote bookmarks:
|
||||
|
||||
`jj bookmark track {{name}}@{{remote}}`
|
||||
`jj {{[b|bookmark]}} {{[t|track]}} {{name}}@{{remote}}`
|
||||
|
||||
- Delete a bookmark, and propagate the deletion to remotes on the next push:
|
||||
|
||||
`jj bookmark delete {{name}}`
|
||||
`jj {{[b|bookmark]}} {{[d|delete]}} {{name}}`
|
||||
|
||||
- Forget a bookmark locally, without marking its deletion to be pushed:
|
||||
|
||||
`jj bookmark forget {{name}}`
|
||||
`jj {{[b|bookmark]}} {{[f|forget]}} {{name}}`
|
||||
|
||||
13
tldr/jj-parallelize
Normal file
13
tldr/jj-parallelize
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj parallelize
|
||||
|
||||
> Parallelize revisions by making them siblings.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-parallelize>.
|
||||
|
||||
- Parallelize given revisions:
|
||||
|
||||
`jj parallelize {{revsets}}`
|
||||
25
tldr/jj-rebase
Normal file
25
tldr/jj-rebase
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj rebase
|
||||
|
||||
> Move revisions to different parent(s).
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-rebase>.
|
||||
|
||||
- Move given revisions to a different parent(s):
|
||||
|
||||
`jj rebase {{[-r|--revisions]}} {{revset}} {{[-d|--destination]}} {{revset}}`
|
||||
|
||||
- Move given revisions and all their descendants:
|
||||
|
||||
`jj rebase {{[-s|--source]}} {{revset}} {{[-d|--destination]}} {{revset}}`
|
||||
|
||||
- Move all revisions in the branch containing given revisions:
|
||||
|
||||
`jj rebase {{[-b|--branch]}} {{revset}} {{[-d|--destination]}} {{revset}}`
|
||||
|
||||
- Move revisions to before and/or after other revisions:
|
||||
|
||||
`jj rebase {{[-r|--revisions]}} {{revset}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}`
|
||||
33
tldr/jj-resolve
Normal file
33
tldr/jj-resolve
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj resolve
|
||||
|
||||
> Resolve conflicted files with an external merge tool.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-resolve>.
|
||||
|
||||
- Resolve all conflicts:
|
||||
|
||||
`jj resolve`
|
||||
|
||||
- List all conflicts:
|
||||
|
||||
`jj resolve {{[-l|--list]}}`
|
||||
|
||||
- Resolve conflicts in a given revision:
|
||||
|
||||
`jj resolve {{[-r|--revision]}} {{revset}}`
|
||||
|
||||
- Resolve conflicts in given files:
|
||||
|
||||
`jj resolve {{file1 file2 ...}}`
|
||||
|
||||
- Resolve accepting the incoming versions:
|
||||
|
||||
`jj resolve --tool :theirs`
|
||||
|
||||
- Resolve accepting the outgoing versions:
|
||||
|
||||
`jj resolve --tool :ours`
|
||||
29
tldr/jj-split
Normal file
29
tldr/jj-split
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jj split
|
||||
|
||||
> Split a revision in two.
|
||||
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-split>.
|
||||
|
||||
- Split the given revision into two interactively, putting the second revision on top of it:
|
||||
|
||||
`jj split {{[-r|--revision]}} {{revision}}`
|
||||
|
||||
- Split out matching files from the given revision:
|
||||
|
||||
`jj split {{[-r|--revision]}} {{revision}} {{fileset}}`
|
||||
|
||||
- Split the given revision, putting the second revision on top of given destination(s):
|
||||
|
||||
`jj split {{[-r|--revision]}} {{revision}} {{[-d|--destination]}} {{revset}}`
|
||||
|
||||
- Split the given revision, putting the second revision before and/or after other revision(s):
|
||||
|
||||
`jj split {{[-r|--revision]}} {{revision}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}`
|
||||
|
||||
- Split the given revision into two parallel revisions:
|
||||
|
||||
`jj split {{[-r|--revision]}} {{revision}} {{[-p|--parallel]}}`
|
||||
@@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show high-level status of the repository:
|
||||
|
||||
`jj status`
|
||||
`jj {{[st|status]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# alsamixer
|
||||
|
||||
> Graphical mixer for ALSA soundcard driver.
|
||||
> More information: <https://manned.org/man/alsamixer>.
|
||||
> More information: <https://manned.org/alsamixer>.
|
||||
|
||||
- Select the soundcard to use:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cpuid
|
||||
|
||||
> Display detailed information about all CPUs.
|
||||
> More information: <https://manned.org/man/cpuid.1>.
|
||||
> More information: <https://manned.org/cpuid.1>.
|
||||
|
||||
- Display information for all CPUs:
|
||||
|
||||
|
||||
@@ -12,32 +12,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`sudo dnf upgrade`
|
||||
`sudo dnf {{[up|upgrade]}}`
|
||||
|
||||
- Search packages via keywords:
|
||||
|
||||
`dnf search {{keyword1 keyword2 ...}}`
|
||||
`dnf {{[se|search]}} {{keyword1 keyword2 ...}}`
|
||||
|
||||
- Display details about a package:
|
||||
|
||||
`dnf info {{package}}`
|
||||
`dnf {{[if|info]}} {{package}}`
|
||||
|
||||
- Install a new package (use `-y` to confirm all prompts automatically):
|
||||
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
|
||||
|
||||
`sudo dnf install {{package1 package2 ...}}`
|
||||
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`sudo dnf remove {{package1 package2 ...}}`
|
||||
`sudo dnf {{[rm|remove]}} {{package1 package2 ...}}`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`dnf list --installed`
|
||||
`dnf {{[ls|list]}} --installed`
|
||||
|
||||
- Find which packages provide a given command:
|
||||
|
||||
`dnf provides {{command}}`
|
||||
`dnf {{[wp|provides]}} {{command}}`
|
||||
|
||||
- View all past operations:
|
||||
|
||||
`dnf history`
|
||||
`dnf {{[hist|history]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dnf config-manager
|
||||
|
||||
> Manage DNF configuration options and repositories on Fedora-based systems.
|
||||
> More information: <https://manned.org/dnf-config-manager>.
|
||||
> More information: <https://dnf-plugins-core.readthedocs.io/en/latest/config_manager.html>.
|
||||
|
||||
- Add (and enable) a repository from a URL:
|
||||
|
||||
|
||||
12
tldr/linux/dnf-deplist
Normal file
12
tldr/linux/dnf-deplist
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf deplist
|
||||
|
||||
> This command is an alias of `dnf repoquery --deplist`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr dnf repoquery`
|
||||
@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dnf group
|
||||
|
||||
> Manage virtual collections of packages on Fedora-based systems.
|
||||
> More information: <https://manned.org/dnf-group>.
|
||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#group-command>.
|
||||
|
||||
- List DNF groups, showing installed and uninstalled status in a table:
|
||||
|
||||
`dnf group list`
|
||||
`dnf {{[grp|group]}} list`
|
||||
|
||||
- Show DNF group info, including repository and optional packages:
|
||||
|
||||
`dnf group info {{group_name}}`
|
||||
`dnf {{[grp|group]}} info {{group_name}}`
|
||||
|
||||
- Install DNF group:
|
||||
|
||||
`dnf group install {{group_name}}`
|
||||
`dnf {{[grp|group]}} install {{group_name}}`
|
||||
|
||||
- Remove DNF group:
|
||||
|
||||
`dnf group remove {{group_name}}`
|
||||
`dnf {{[grp|group]}} remove {{group_name}}`
|
||||
|
||||
- Upgrade DNF group:
|
||||
|
||||
`dnf group upgrade {{group_name}}`
|
||||
`dnf {{[grp|group]}} upgrade {{group_name}}`
|
||||
|
||||
13
tldr/linux/dnf-repoquery
Normal file
13
tldr/linux/dnf-repoquery
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf install
|
||||
|
||||
> Query packages for information.
|
||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#repoquery-command>.
|
||||
|
||||
- Query a package for its dependencies:
|
||||
|
||||
`dnf {{[rq|repoquery]}} --deplist {{package}}`
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all genres:
|
||||
|
||||
`id3v2 {{-L|--list-genres}}`
|
||||
`id3v2 {{[-L|--list-genres]}}`
|
||||
|
||||
- List all tags of specific files:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ntpq
|
||||
|
||||
> Query the Network Time Protocol (NTP) daemon.
|
||||
> More information: <https://manned.org/man/ntpq.1>.
|
||||
> More information: <https://manned.org/ntpq.1>.
|
||||
|
||||
- Start `ntpq` in interactive mode:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pokego
|
||||
|
||||
> Displays Pokémon sprites in color directly in your terminal.
|
||||
> Display Pokémon sprites in color directly in your terminal.
|
||||
> Inspired by Phoney badger's `pokemon-colorscripts` but offers enhanced speed and efficiency.
|
||||
> More information: <https://github.com/rubiin/pokego>.
|
||||
|
||||
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List available licenses:
|
||||
|
||||
`proctl {{-ll|-list-licenses}}`
|
||||
`proctl {{[-ll|-list-licenses]}}`
|
||||
|
||||
- List available languages:
|
||||
|
||||
`proctl {{-lL|-list-languages}}`
|
||||
`proctl {{[-lL|-list-languages]}}`
|
||||
|
||||
- Pick a license in a FZF menu:
|
||||
|
||||
`proctl {{-pl|-pick-license}}`
|
||||
`proctl {{[-pl|-pick-license]}}`
|
||||
|
||||
- Pick a language in a FZF menu:
|
||||
|
||||
`proctl {{-pL|-pick-language}}`
|
||||
`proctl {{[-pL|-pick-language]}}`
|
||||
|
||||
- Remove all licenses from the current project:
|
||||
|
||||
`proctl {{-r|-remove-license}}`
|
||||
`proctl {{[-r|-remove-license]}}`
|
||||
|
||||
- Create a new license template:
|
||||
|
||||
`proctl {{-t|-new-template}}`
|
||||
`proctl {{[-t|-new-template]}}`
|
||||
|
||||
- Delete a license from templates:
|
||||
|
||||
`proctl {{-R|-delete-license}} {{@license_name1 @license_name2 ...}}`
|
||||
`proctl {{[-R|-delete-license]}} {{@license_name1 @license_name2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`proctl {{-h|-help}}`
|
||||
`proctl {{[-h|-help]}}`
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set or unset a SELinux boolean. Booleans allow the administrator to customize how policy rules affect confined process types (a.k.a domains):
|
||||
|
||||
`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
`sudo semanage boolean {{[-m|--modify]}} {{--on|--off}} {{haproxy_connect_any}}`
|
||||
|
||||
- Add a user-defined file context labeling rule. File contexts define what files confined domains are allowed to access:
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set or unset permissive mode for a confined domain. Per-domain permissive mode allows more granular control compared to `setenforce`:
|
||||
|
||||
`sudo semanage permissive {{-a|--add|-d|--delete}} {{httpd_t}}`
|
||||
`sudo semanage permissive {{--add|--delete}} {{httpd_t}}`
|
||||
|
||||
- Output local customizations in the default store:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# steamos-factory-reset-config
|
||||
|
||||
> Generates configuration files required by `steamos-factory-reset`.
|
||||
> Generate configuration files required by `steamos-factory-reset`.
|
||||
> This command is typically called internally and not meant to be run manually.
|
||||
> More information: <https://gitlab.com/users/evlaV/projects>.
|
||||
|
||||
|
||||
@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`lsar {{-h|--help}}`
|
||||
`lsar {{[-h|--help]}}`
|
||||
|
||||
17
tldr/modutil
Normal file
17
tldr/modutil
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# modutil
|
||||
|
||||
> Manage PKCS #11 module information within the NSS security module database.
|
||||
> More information: <https://manned.org/modutil>.
|
||||
|
||||
- Add a PKCS #11 module to a NSS database (e.g. a Firefox profile: `$HOME/.mozilla/firefox/default-release`):
|
||||
|
||||
`modutil -dbdir sql:{{path/to/nss/db/dir}} -add "{{module_label}}" -libfile {{path/to/pkcs11_mod.so}}`
|
||||
|
||||
- List PKCS #11 modules in a NSS database:
|
||||
|
||||
`modutil -dbdir sql:{{path/to/nss/db/dir}} -list`
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all listening ports:
|
||||
|
||||
`netstat {{-l|--listening]}}`
|
||||
`netstat {{[-l|--listening]]}}`
|
||||
|
||||
- List listening TCP ports:
|
||||
|
||||
`netstat {{-t|--tcp]}}`
|
||||
`netstat {{[-t|--tcp]]}}`
|
||||
|
||||
- Display PID and program names:
|
||||
|
||||
|
||||
21
tldr/nix-channel
Normal file
21
tldr/nix-channel
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nix-channel
|
||||
|
||||
> Manage `nix` update channels.
|
||||
> More information: <https://nixos.wiki/wiki/Nix_channels>.
|
||||
|
||||
- List current channels:
|
||||
|
||||
`nix-channel --list`
|
||||
|
||||
- Add a channel:
|
||||
|
||||
`nix-channel --add {{https://nixos.org/channels/nixpkgs-unstable}}`
|
||||
|
||||
- Update package list of all channels:
|
||||
|
||||
`nix-channel --update`
|
||||
2
tldr/opt
2
tldr/opt
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# opt
|
||||
|
||||
> Runs optimizations and analyse LLVM source files.
|
||||
> Run optimizations and analyse LLVM source files.
|
||||
> More information: <https://llvm.org/docs/CommandGuide/opt.html>.
|
||||
|
||||
- Run an optimization or analysis on a bitcode file:
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pico -v {{path/to/file}}`
|
||||
|
||||
- Displays all files including those beginning with a period:
|
||||
- Display all files including those beginning with a period:
|
||||
|
||||
`pico -a`
|
||||
|
||||
25
tldr/pkcs11-tool
Normal file
25
tldr/pkcs11-tool
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pkcs11-tool
|
||||
|
||||
> Utility for managing and using PKCS #11 security tokens.
|
||||
> More information: <https://github.com/OpenSC/OpenSC/wiki/Using-pkcs11-tool-and-OpenSSL>.
|
||||
|
||||
- List slots and their potential token, using a specific module (e.g. `/usr/lib/softhsm/libsofthsm2.so`):
|
||||
|
||||
`pkcs11-tool --module {{path/to/module.so}} {{[-L|--list-slots]}} {{[-T|--list-token-slots]}}`
|
||||
|
||||
- List objects in a specific slot. (Note: `slot_id` is not the slot index shown as "Slot X"):
|
||||
|
||||
`pkcs11-tool {{[-O|--list-objects]}} {{[-p|--pin]}} {{auth_pin}} --slot {{slot_id}}`
|
||||
|
||||
- Create a new object with a specific label and type:
|
||||
|
||||
`pkcs11-tool --slot {{slot_id}} {{[-p|--pin]}} {{auth_pin}} {{[-y|--type]}} {{cert|privkey|pubkey|secrkey|data|...}} {{[-a|--label]}} "{{label}}" {{[-d|--id]}} {{01}} {{[-w|--write-object]}} {{path/to/cert.crt}}`
|
||||
|
||||
- Delete an object by its label and type:
|
||||
|
||||
`pkcs11-tool --slot {{slot_id}} {{[-p|--pin]}} {{auth_pin}} {{[-y|--type]}} {{cert|privkey|pubkey|secrkey|data|...}} {{[-a|--label]}} "{{label}}" {{[-b|--delete-object]}}`
|
||||
2
tldr/ps
2
tldr/ps
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Sort processes by memory consumption:
|
||||
|
||||
`ps {{[k|--sort]}} size`
|
||||
`ps --sort size`
|
||||
|
||||
41
tldr/sg_raw
Normal file
41
tldr/sg_raw
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sg_raw
|
||||
|
||||
> Send arbitrary SCSI command to a connected device.
|
||||
> More information: <https://manned.org/sg_raw>.
|
||||
|
||||
- Send a command to an optical SCSI device assigned to `sr0` to load the media in its tray:
|
||||
|
||||
`sg_raw /dev/sr0 EA 00 00 00 00 01`
|
||||
|
||||
- Read data from `IFILE` instead of `stdin`:
|
||||
|
||||
`sg_raw {{[-i|--infile]}} {{path/to/IFILE}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
|
||||
- Skip the first `LEN` bytes of input data:
|
||||
|
||||
`sg_raw {{[-k|--skip]}} {{LEN}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
|
||||
- Read `SLEN` bytes of data and send to the device:
|
||||
|
||||
`sg_raw {{[-s|--send]}} {{SLEN}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
|
||||
- Wait up to `SEC` seconds for `sg_raw` to finish processing:
|
||||
|
||||
`sg_raw {{[-t|--timeout]}} {{SEC}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
|
||||
- Increase verbosity level by 1:
|
||||
|
||||
`sg_raw {{[-v|--verbose]}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
|
||||
- Dump returned data in binary form:
|
||||
|
||||
`sg_raw {{[-b|--binary]}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
|
||||
- Write data received from the specified device to an `OFILE`:
|
||||
|
||||
`sg_raw {{[-o|--outfile]}} {{path/to/OFILE}} {{/dev/sgX}} {{SCSI_command}}`
|
||||
37
tldr/spf
Normal file
37
tldr/spf
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# spf
|
||||
|
||||
> The superfile – Modern terminal file manager.
|
||||
> More information: <https://github.com/yorukot/superfile>.
|
||||
|
||||
- Launch `spf` with a specific path:
|
||||
|
||||
`spf {{path/to/directory}}`
|
||||
|
||||
- Launch `spf` with multiple paths:
|
||||
|
||||
`spf {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
||||
- Fix hotkey settings by appending missing keys:
|
||||
|
||||
`spf {{[--fh|--fix-hotkeys]}}`
|
||||
|
||||
- Fix the configuration file by appending missing entries:
|
||||
|
||||
`spf {{[--fch|--fix-config-file]}}`
|
||||
|
||||
- Use specific configuration and hotkey files:
|
||||
|
||||
`spf {{[-c|--config-file]}} {{path/to/config.toml}} {{[--hf|--hotkey-file]}} {{path/to/hotkey.toml}}`
|
||||
|
||||
- Write the path of the first selected file to this file and exit:
|
||||
|
||||
`spf {{[--cf|--chooser-file]}} {{tmp/chooser-result}}`
|
||||
|
||||
- Show internal configuration and data directory paths:
|
||||
|
||||
`spf {{[pl|path-list]}}`
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Install an application for a specific platform:
|
||||
|
||||
`steamcmd +@sSteamCmdForcePlatformType {{windows}} +login {{anonymous}} +app_update {{appid}} validate +quit`
|
||||
|
||||
- Clear cached login credentials for a user:
|
||||
|
||||
`steamcmd +login {{username}} +logout +quit`
|
||||
|
||||
@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install a package:
|
||||
|
||||
`winget install {{package}}`
|
||||
`winget {{[add|install]}} {{package}}`
|
||||
|
||||
- Remove a package (Note: `remove` can also be used instead of `uninstall`):
|
||||
|
||||
`winget uninstall {{package}}`
|
||||
`winget {{[rm|uninstall]}} {{package}}`
|
||||
|
||||
- Display information about a package:
|
||||
|
||||
@@ -26,11 +26,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Upgrade all packages to the latest versions:
|
||||
|
||||
`winget upgrade --all`
|
||||
`winget upgrade {{[-r|--all]}}`
|
||||
|
||||
- List all packages installed that can be managed with `winget`:
|
||||
|
||||
`winget list --source winget`
|
||||
`winget {{[ls|list]}} {{[-s|--source]}} winget`
|
||||
|
||||
- Import packages from a file, or export installed packages to a file:
|
||||
|
||||
|
||||
37
tldr/xlsclients
Normal file
37
tldr/xlsclients
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# xlsclients
|
||||
|
||||
> List client applications running on an X11 display.
|
||||
> More information: <https://manned.org/xlsclients>.
|
||||
|
||||
- List clients on the default display:
|
||||
|
||||
`xlsclients`
|
||||
|
||||
- List clients on all screens:
|
||||
|
||||
`xlsclients -a`
|
||||
|
||||
- List clients with detailed information:
|
||||
|
||||
`xlsclients -l`
|
||||
|
||||
- Limit the command output length per client to a specific number of characters:
|
||||
|
||||
`xlsclients -m {{max_command_length}}`
|
||||
|
||||
- Specify a particular display to inspect:
|
||||
|
||||
`xlsclients -display :{{display_number}}`
|
||||
|
||||
- List clients on remote host's display:
|
||||
|
||||
`xlsclients -display {{remote_host}}:0`
|
||||
|
||||
- Display version:
|
||||
|
||||
`xlsclients -version`
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show extra debugging output:
|
||||
|
||||
`zapier analytics {{[-m|--mode]}} {{enabled|anonymous|disabled}} {{-d|--debug}}`
|
||||
`zapier analytics {{[-m|--mode]}} {{enabled|anonymous|disabled}} {{[-d|--debug]}}`
|
||||
|
||||
Reference in New Issue
Block a user