mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 02:47:34 +00:00
Update cheatsheets
This commit is contained in:
@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
|
||||
|
||||
`apt-get autoclean`
|
||||
`sudo apt-get autoclean`
|
||||
|
||||
- Remove all packages that are no longer needed:
|
||||
|
||||
|
||||
34
tldr/linux/cephadm
Normal file
34
tldr/linux/cephadm
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cephadm
|
||||
|
||||
> Deploy and manage a Ceph cluster using containers.
|
||||
> Part of the Ceph orchestrator framework.
|
||||
> More information: <https://docs.ceph.com/en/latest/man/8/cephadm/>.
|
||||
|
||||
- Bootstrap a new Ceph cluster on the current host:
|
||||
|
||||
`sudo cephadm bootstrap --mon-ip {{monitor_ip}}`
|
||||
|
||||
- Add a new host to the cluster:
|
||||
|
||||
`sudo cephadm add-host {{hostname}} {{ip_address}}`
|
||||
|
||||
- Deploy a specific service (e.g., mgr, mon, osd):
|
||||
|
||||
`sudo cephadm deploy {{service_type}} --name {{service_name}}`
|
||||
|
||||
- Check the status of cluster services:
|
||||
|
||||
`sudo cephadm shell -- ceph {{[-s|--status]}}`
|
||||
|
||||
- Enter a shell environment inside the Ceph container:
|
||||
|
||||
`sudo cephadm shell`
|
||||
|
||||
- Remove a service from the cluster:
|
||||
|
||||
`sudo cephadm rm-service {{service_type}} --name {{service_name}}`
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# koji
|
||||
|
||||
> Interact with kojihub.
|
||||
> Some subcommands such as `build`, `tag-build`, `download-build`, `buildinfo`, `call`, etc. have their own usage documentation.
|
||||
> More information: <https://docs.pagure.org/koji>.
|
||||
|
||||
- Execute a koji subcommand:
|
||||
@@ -18,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help about global options:
|
||||
|
||||
`koji --help`
|
||||
`koji {{[-h|--help]}}`
|
||||
|
||||
- Display help to get all available commands:
|
||||
|
||||
@@ -26,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help for a specific subcommand (like `build`, `tag-build`, `download-build`, `buildinfo`,`call`, etc.):
|
||||
|
||||
`koji {{subcommand}} --help`
|
||||
`koji {{subcommand}} {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji build --help`
|
||||
`koji build {{[-h|--help]}}`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji buildinfo --help`
|
||||
`koji buildinfo {{-h|--help}}`
|
||||
|
||||
@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji call --help`
|
||||
`koji call {{[-h|--help]}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji download-build --help`
|
||||
`koji download-build {{[-h|--help]}}`
|
||||
|
||||
@@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`koji help`
|
||||
|
||||
- Display help for specific subcommand (such as `build`, `call`, `cancel`, `tag-build`, etc.):
|
||||
- Display help for specific category (Available categories are: admin, all, bind, build, download, info, misc, monitor, search):
|
||||
|
||||
`koji help {{subcommand}}`
|
||||
`koji help {{category}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji {{[-h|--help]}}`
|
||||
`koji help {{[-h|--help]}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji tag-build --help`
|
||||
`koji tag-build {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji taginfo --help`
|
||||
`koji taginfo {{[-h|--help]}}`
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji untag-build --help`
|
||||
`koji untag-build {{[-h|--help]}}`
|
||||
|
||||
17
tldr/linux/systemctl-log-level
Normal file
17
tldr/linux/systemctl-log-level
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl log-level
|
||||
|
||||
> Get or set the log level of the systemd manager.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#log-level%20[LEVEL]>.
|
||||
|
||||
- Show the current log level of the systemd manager:
|
||||
|
||||
`systemctl log-level`
|
||||
|
||||
- Set the manager's log level:
|
||||
|
||||
`systemctl log-level {{emerg|alert|crit|err|warning|notice|info|debug}}`
|
||||
17
tldr/linux/systemctl-log-target
Normal file
17
tldr/linux/systemctl-log-target
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl log-target
|
||||
|
||||
> Get or set the log target for the systemd manager.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#log-target%20[TARGET]>.
|
||||
|
||||
- Show the current log target of the systemd manager:
|
||||
|
||||
`systemctl log-target`
|
||||
|
||||
- Set the manager's log target:
|
||||
|
||||
`systemctl log-target {{journal-or-kmsg|journal|kmsg|console|syslog|null|auto}}`
|
||||
21
tldr/linux/systemctl-service-watchdogs
Normal file
21
tldr/linux/systemctl-service-watchdogs
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl service-watchdogs
|
||||
|
||||
> Get or set the global state of service runtime watchdogs.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#service-watchdogs%20[yes|no]>.
|
||||
|
||||
- Show whether service watchdogs are currently enabled:
|
||||
|
||||
`systemctl service-watchdogs`
|
||||
|
||||
- Enable service runtime watchdogs:
|
||||
|
||||
`systemctl service-watchdogs yes`
|
||||
|
||||
- Disable service runtime watchdogs:
|
||||
|
||||
`systemctl service-watchdogs no`
|
||||
38
tldr/linux/udiskie
Normal file
38
tldr/linux/udiskie
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie
|
||||
|
||||
> A user-level automounter for removable media using udisks2.
|
||||
> See also: `udiskie-mount`, `udiskie-umount`.
|
||||
> More information: <https://github.com/coldfix/udiskie/wiki/Usage>.
|
||||
|
||||
- Start udiskie with tray icon and notifications:
|
||||
|
||||
`udiskie --tray --notify`
|
||||
|
||||
- Run udiskie without using a config file:
|
||||
|
||||
`udiskie --no-config`
|
||||
|
||||
- Specify a custom config file:
|
||||
|
||||
`udiskie --config {{path/to/config.yml}}`
|
||||
|
||||
- Use a custom password prompt command:
|
||||
|
||||
`udiskie --password-prompt '{{command}}'`
|
||||
|
||||
- Enable verbose output:
|
||||
|
||||
`udiskie --verbose`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie --help`
|
||||
|
||||
- Display version:
|
||||
|
||||
`udiskie --version`
|
||||
22
tldr/linux/udiskie-dmenu
Normal file
22
tldr/linux/udiskie-dmenu
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie-dmenu
|
||||
|
||||
> A dmenu/rofi-based frontend for udiskie to mount and unmount devices interactively.
|
||||
> Requires udiskie and either dmenu or rofi.
|
||||
> More information: <https://github.com/fogine/udiskie-dmenu>.
|
||||
|
||||
- Launch the menu to mount or unmount devices:
|
||||
|
||||
`udiskie-dmenu`
|
||||
|
||||
- Use rofi instead of dmenu:
|
||||
|
||||
`udiskie-dmenu --rofi`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie-dmenu --help`
|
||||
26
tldr/linux/udiskie-mount
Normal file
26
tldr/linux/udiskie-mount
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie-mount
|
||||
|
||||
> Manually mount devices using udiskie.
|
||||
> See also: `udiskie`, `udiskie-umount`.
|
||||
> More information: <https://github.com/coldfix/udiskie/wiki/Usage>.
|
||||
|
||||
- Mount all handleable devices:
|
||||
|
||||
`udiskie-mount {{[-a|--all]}}`
|
||||
|
||||
- Mount a specific device:
|
||||
|
||||
`udiskie-mount {{/dev/sdX1}}`
|
||||
|
||||
- Mount a device with verbose output:
|
||||
|
||||
`udiskie-mount --verbose {{/dev/sdX1}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie-mount --help`
|
||||
26
tldr/linux/udiskie-umount
Normal file
26
tldr/linux/udiskie-umount
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie-umount
|
||||
|
||||
> Manually unmount devices using udiskie.
|
||||
> See also: `udiskie`, `udiskie-mount`.
|
||||
> More information: <https://github.com/coldfix/udiskie/wiki/Usage>.
|
||||
|
||||
- Unmount a mounted device:
|
||||
|
||||
`udiskie-umount {{path/to/mount}}`
|
||||
|
||||
- Unmount and power down a USB device:
|
||||
|
||||
`udiskie-umount --detach {{path/to/mount}}`
|
||||
|
||||
- Eject an optical drive:
|
||||
|
||||
`udiskie-umount --eject {{path/to/mount}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie-umount --help`
|
||||
Reference in New Issue
Block a user