Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-20 00:21:53 +00:00
parent 01e38ccf44
commit 60190f32c7
13 changed files with 104 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cfdisk
> Manage partition tables and partitions on a hard disk using a curses UI.
> See also: `parted`.
> More information: <https://manned.org/cfdisk>.
- Start the partition manipulator with a specific device:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cu
> Call Up another system and act as a dial-in/serial terminal or perform file transfers with no error checking.
> See also: `picocom`, `minicom`, `tio`.
> More information: <https://manned.org/cu>.
- Open a given serial port:

View File

@@ -29,6 +29,14 @@ source: https://github.com/tldr-pages/tldr.git
`gio trash {{path/to/file}}`
- Empty the trash:
`gio trash --empty`
- Launch an application from a `.desktop` file:
`gio launch {{path/to/file}}.desktop`
- Mark a `.desktop` file as trusted, allowing it to be executed:
`gio set {{path/to/file}}.desktop metadata::trusted true`

View File

@@ -17,6 +17,10 @@ source: https://github.com/tldr-pages/tldr.git
`gio trash --list`
- Empty the trash:
`gio trash --empty`
- Restore a specific item from trash using its ID:
`gio trash trash://{{id}}`

37
tldr/linux/iscsiadm Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# iscsiadm
> Manage iSCSI sessions, nodes, and discovery.
> More information: <https://manned.org/iscsiadm>.
- Show active iSCSI sessions:
`sudo iscsiadm {{[-m|--mode]}} session`
- List all known iSCSI nodes:
`sudo iscsiadm {{[-m|--mode]}} node`
- Discover available iSCSI targets on a portal (no authentication):
`sudo iscsiadm {{[-m|--mode]}} discovery {{[-t|--type]}} sendtargets {{[-p|--portal]}} {{ip_address}}`
- Log in to a specific iSCSI target without authentication:
`sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-l|--login]}}`
- Log out from a specific iSCSI target:
`sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-u|--logout]}}`
- Create an iSCSI node when discovery is blocked (for CHAP authentication):
`sudo iscsiadm {{[-m|--mode]}} node {{[-o|--op]}} new {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260`
- Configure CHAP authentication for an iSCSI target:
`sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-o|--op]}} update {{[-n|--name]}} node.session.auth.authmethod {{[-v|--value]}} CHAP`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# minicom
> Communicate with the serial interface of a device.
> See also: `picocom`, `cu`, `tio`.
> More information: <https://manned.org/minicom>.
- Open a given serial port:

View File

@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create an ext4 filesystem with a volume-label:
`sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdXY}}`
- Create an ext4 filesystem owned by a specific user and group:
`sudo mkfs.ext4 -E root_owner={{uid}}:{{gid}} {{/dev/sdXY}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# parted
> A partition manipulation program.
> See also: `parted.interactive`, `partprobe`.
> See also: `parted.interactive`, `cfdisk`, `partprobe`.
> More information: <https://www.gnu.org/software/parted/manual/parted.html#Invoking-Parted>.
- List partitions on all block devices:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# slurmrestd
> Interface to Slurm via REST API. It can be used in two modes: Inetd Mode and Listen Mode.
> Interface to Slurm via REST API.
> Note: Can be used in two modes: Inetd Mode and Listen Mode.
> More information: <https://slurm.schedmd.com/slurmrestd.html>.
- Change the [g]roup ID (and drop supplemental groups) before processing client requests: