mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 03:48:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`agetty {{tty}} {{115200}}`
|
||||
|
||||
- Assume `stdin` is already connected to a `tty` and set a [t]imeout for the login:
|
||||
- Assume `stdin` is already connected to a `tty` and set a timeout for the login:
|
||||
|
||||
`agetty {{-t|--timeout}} {{timeout_in_seconds}} -`
|
||||
|
||||
@@ -22,14 +22,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`agetty -8 - {{term_var}}`
|
||||
|
||||
- Skip the login ([n]o login) and invoke, as root, another [l]ogin program instead of `/bin/login`:
|
||||
- Skip the login (no login) and invoke, as root, another login program instead of `/bin/login`:
|
||||
|
||||
`agetty {{-n|--skip-login}} {{-l|--login-program}} {{login_program}} {{tty}}`
|
||||
|
||||
- Do not display the pre-login ([i]ssue) file (`/etc/issue` by default) before writing the login prompt:
|
||||
- Do not display the pre-login (issue) file (`/etc/issue` by default) before writing the login prompt:
|
||||
|
||||
`agetty {{-i|--noissue}} -`
|
||||
|
||||
- Change the [r]oot directory and write a specific fake [H]ost into the `utmp` file:
|
||||
- Change the root directory and write a specific fake host into the `utmp` file:
|
||||
|
||||
`agetty {{-r|--chroot}} {{/path/to/root_directory}} {{-H|--host}} {{fake_host}} -`
|
||||
|
||||
@@ -8,22 +8,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations.
|
||||
> More information: <https://manned.org/blkpr>.
|
||||
|
||||
- Register ([c]ommand) a new reservation with a given [k]ey on a given device:
|
||||
- Register (command) a new reservation with a given key on a given device:
|
||||
|
||||
`blkpr {{-c|--command}} register --key {{reservation_key}} {{path/to/device}}`
|
||||
`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}`
|
||||
|
||||
- Set the [t]ype of an existing reservation to exclusive access:
|
||||
- Set the type of an existing reservation to exclusive access:
|
||||
|
||||
`blkpr -c reserve -k {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}`
|
||||
`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}`
|
||||
|
||||
- Preempt the existing reservation with a given [K]ey and replace it with a new reservation:
|
||||
- Preempt the existing reservation with a given key and replace it with a new reservation:
|
||||
|
||||
`blkpr -c preempt {{-K|--oldkey}} {{old_key}} --key {{new_key}} -t write-exclusive {{path/to/device}}`
|
||||
`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}`
|
||||
|
||||
- Release a reservation with a given [k]ey and [t]ype on a given device:
|
||||
- Release a reservation with a given key and type on a given device:
|
||||
|
||||
`blkpr -c release --key {{reservation_key}} -t {{reservation_type}} {{path/to/device}}`
|
||||
`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}`
|
||||
|
||||
- Clear all reservations from a given device:
|
||||
|
||||
`blkpr -c clear -k {{key}} {{path/to/device}}`
|
||||
`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}`
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List signal values and their corresponding names (to be used without the `SIG` prefix):
|
||||
|
||||
`kill -{{L|-table}}`
|
||||
`kill {{-L|--table}}`
|
||||
|
||||
- Terminate a background job:
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pw-dot {{-j|--json}} {{path/to/file.json}}`
|
||||
|
||||
- Specify an [o]utput file, showing [a]ll object types:
|
||||
- Specify an [o]utput file, showing all object types:
|
||||
|
||||
`pw-dot --output {{path/to/file.dot}} {{-a|--all}}`
|
||||
|
||||
@@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pw-dot --remote {{remote_name}} {{-s|--smart}}`
|
||||
|
||||
- Lay the graph from [l]eft to [r]ight, instead of dot's default top to bottom:
|
||||
- Lay the graph from left to right, instead of dot's default top to bottom:
|
||||
|
||||
`pw-dot {{-L|--lr}}`
|
||||
|
||||
|
||||
@@ -12,15 +12,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo showkey`
|
||||
|
||||
- Display [s]cancodes in hexadecimal:
|
||||
- Display scancodes in hexadecimal:
|
||||
|
||||
`sudo showkey {{-s|--scancodes}}`
|
||||
|
||||
- Display [k]eycodes in decimal (default):
|
||||
- Display keycodes in decimal (default):
|
||||
|
||||
`sudo showkey {{-k|--keycodes}}`
|
||||
|
||||
- Display keycodes in [a]SCII, decimal, and hexadecimal:
|
||||
- Display keycodes in ASCII, decimal, and hexadecimal:
|
||||
|
||||
`sudo showkey {{-a|--ascii}}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user