Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-30 00:22:10 +00:00
parent 0b27d7dda4
commit 3495c8ec38
111 changed files with 496 additions and 123 deletions

37
tldr/linux/aide Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# aide
> Advanced Intrusion Detection Environment to validate file integrity.
> More information: <https://manned.org/aide>.
- Initialize the database:
`sudo aide {{[-i|--init]}}`
- Check the database for inconsistencies:
`sudo aide {{[-C|--check]}}`
- Compare two databases according to definitions in the config file:
`sudo aide {{[-E|--compare]}}`
- Check and update the database non-interactively:
`sudo aide {{[-u|--update]}}`
- Define a config file to override the default {{./aide.conf}}:
`sudo aide {{[-c|--config]}} {{path/to/config_file}}`
- Use REGEX to limit AIDE to a specific string:
`sudo aide {{[-l|--limit]}} {{REGEX}}`
- Send reporter results to a URL:
`sudo aide {{[-r|--report]}} {{reporterurl}}`

41
tldr/linux/away Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# away
> Locks terminal with an away message.
> More information: <https://manned.org/away>.
- Lock terminal and set away message:
`away {{message}}`
- Lock terminal and enable mail check:
`away {{[-c|--mail]}} {{message}}`
- Lock terminal and disable mail check:
`away {{[-C|--nomail]}} {{message}}`
- Lock terminal and sleep background tasks for number of seconds:
`away {{[-t|--time]}} {{seconds}} {{message}}`
- Lock terminal and check mail if at least one inbox hasn't received new mail:
`away {{[-p|--persist]}} {{message}}`
- Lock terminal and check mail until at least one inbox has received new mail:
`away {{[-P|--nopersist]}} {{message}}`
- Display help:
`away {{[-h|--help]}}`
- Display version:
`away {{[-v|--version]}}`

View File

@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
- Flash an ISO to a drive without entering the hash interactively:
`caligula burn {{path/to/image.iso}} {{[-s|--hash]}} {{hash}}`
`caligula burn {{path/to/image.iso}} {{[-s|--hash]}} {{hash}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# cloud-init
> Command line tool for managing cloud instance initialization.
> Manage cloud instance initialization.
> More information: <https://cloudinit.readthedocs.io/en/latest/reference/cli.html>.
- Display the status of the most recent cloud-init run:

View File

@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# daemon
> Run processes into daemons.
> More information: <https://manned.org/daemon>.
> Turns other processes into daemons.
> More information: <https://manned.org/daemon.1>.
- Run a command as a daemon:
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Run a command as a daemon which will restart if the command crashes:
`daemon --name="{{name}}" --respawn {{command}}`
`daemon --name="{{name}}" {{[-r|--respawn]}} {{command}}`
- Run a command as a daemon which will restart if it crashes, with two attempts every 10 seconds:
`daemon --name="{{name}}" --respawn --attempts=2 --delay=10 {{command}}`
`daemon --name="{{name}}" {{[-r|--respawn]}} --attempts=2 --delay=10 {{command}}`
- Run a command as a daemon, writing logs to a specific file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dbus-daemon
> The D-Bus message daemon, allowing multiple programs to exchange messages.
> More information: <https://www.freedesktop.org/wiki/Software/dbus/>.
> More information: <https://dbus.freedesktop.org/doc/dbus-daemon.1.html>.
- Run the daemon with a configuration file:

View File

@@ -5,16 +5,16 @@ source: https://github.com/tldr-pages/tldr.git
---
# debchange
> Mantain the debian/changelog file of a Debian source package.
> Maintain the debian/changelog file of a Debian source package.
> More information: <https://manned.org/debchange.1>.
- Add a new version for a non-maintainer upload to the changelog:
`debchange --nmu`
`debchange {{[-n|--nmu]}}`
- Add a changelog entry to the current version:
`debchange --append`
`debchange {{[-a|--append]}}`
- Add a changelog entry to close the bug with specified ID:

View File

@@ -8,14 +8,14 @@ source: https://github.com/tldr-pages/tldr.git
> Read man pages from uninstalled packages.
> More information: <https://manned.org/debman.1>.
- Read a man page for a command that is provided by a specified package:
- Read a man page for a command that is provided by a specified [p]ackage:
`debman -p {{package}} {{command}}`
- Specify a package version to download:
- Specify a [p]ackage version to download:
`debman -p {{package}}={{version}} {{command}}`
- Read a man page in a `.deb` file:
- Read a man page in a `.deb` [f]ile:
`debman -f {{path/to/filename.deb}} {{command}}`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Find packages which are only recommended or suggested (but not required) by another package:
`deborphan --nice-mode`
`deborphan {{[-n|--nice-mode]}}`

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Update debtap database (before the first run):
`sudo debtap --update`
`sudo debtap {{[-u|--update]}}`
- Convert the specified package:
@@ -19,8 +19,8 @@ source: https://github.com/tldr-pages/tldr.git
- Convert the specified package bypassing all questions, except for editing metadata files:
`debtap --quiet {{path/to/package.deb}}`
`debtap {{[-q|--quiet]}} {{path/to/package.deb}}`
- Generate a PKGBUILD file:
`debtap --pkgbuild {{path/to/package.deb}}`
`debtap {{[-p|--pkgbuild]}} {{path/to/package.deb}}`

View File

@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
- Enable a specific repository:
`dnf config-manager --set-enabled {{repository_id}}`
`dnf config-manager {{[--enable|--set-enabled]}} {{repository_id}}`
- Disable specified repositories:
`dnf config-manager --set-disabled {{repository_id1 repository_id2 ...}}`
`dnf config-manager {{[--disable|--set-disabled]}} {{repository_id1 repository_id2 ...}}`
- Set a configuration option for a repository:

View File

@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
- Upgrade to the latest development release:
`sudo do-release-upgrade --devel-release`
`sudo do-release-upgrade {{[-d|--devel-release]}}`
- Upgrade to the latest proposed release:
`sudo do-release-upgrade --proposed`
`sudo do-release-upgrade {{[-p|--proposed]}}`

View File

@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display help:
`dolphin --help`
`dolphin {{[-h|--help]}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Generate initramfs images to boot the Linux kernel.
> Dracut uses options from configuration files in `/etc/dracut.conf`, `/etc/dracut.conf.d/*.conf` and `/usr/lib/dracut/dracut.conf.d/*.conf` by default.
> More information: <https://github.com/dracutdevs/dracut/wiki>.
> More information: <https://github.com/dracut-ng/dracut-ng/blob/main/man/dracut.8.adoc>.
- Generate an initramfs image for the current kernel without overriding any options:
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Generate an initramfs image for the current kernel and overwrite the existing one:
`dracut --force`
`dracut {{[-f|--force]}}`
- Generate an initramfs image for a specific kernel:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Handle local and virtual files (GVfs).
> Part of GLib used in GNOME-based systems.
> More information: <https://manpages.ubuntu.com/manpages/focal/man1/gio.1.html>.
> More information: <https://manned.org/gio>.
- Open a file with the default application (e.g. PDF, image):

41
tldr/linux/haveged Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# haveged
> Hardware-based random number generator.
> More information: <https://manned.org/haveged>.
- Generate a random number:
`sudo haveged`
- Run `haveged` in foreground:
`sudo haveged {{[-F|--Foreground]}}`
- Set file path for output of `haveged`:
`sudo haveged {{[-f|--file]}} {{path/to/file}}`
- Set run level for daemon:
`sudo haveged {{[-r|--run]}} {{runlevel}}`
- Set collection buffer size in kibibyte words:
`sudo haveged {{[-b|--buffer]}} {{buffersizeinKW}}`
- Insert a command to an already running `haveged` process or daemon:
`sudo haveged {{[-c|--command]}} {{command}}`
- Set cache size in kibibyte words:
`sudo haveged {{[-d|--data]}} {{cachesizeinKW}}`
- Set number of bytes to write to the output file:
`sudo haveged {{[-n|--number]}} {{byteamount}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# http-prompt
> An interactive command-line HTTP client featuring autocomplete and syntax highlighting.
> An interactive HTTP client featuring autocomplete and syntax highlighting.
> More information: <https://github.com/httpie/http-prompt>.
- Launch a session targeting the default URL of <http://localhost:8000> or the previous session:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# imgp
> Command-line image resizer and rotator for JPEG and PNG images.
> Resize and rotate JPEG and PNG images.
> More information: <https://github.com/jarun/imgp>.
- Convert single images and/or whole directories containing valid image formats:

View File

@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
- List installed plasmoids (`--global` for all users):
`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-l|--list]}} {{[-g|--global]}}`
`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-l|--list]}} {{[-g|--global]}}`
- Remove a plasmoid by name:
`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-r|--remove]}} "{{name}}"`
`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-r|--remove]}} "{{name}}"`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# kscreen-console
> Command-line tool to query KScreen's status.
> Query KScreen's status.
> More information: <https://manned.org/kscreen-console>.
- Show all outputs and configuration files to attach to a bug report:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- List all available folders:
`kwallet-query {{kdewallet}} {{[-l|--list-entries]}} {{[-f|--folder]}} ""`
`kwallet-query {{kdewallet}} {{[-l|--list-entries]}} {{[-f|--folder]}} ""`
- Display help:

View File

@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
- Compile a source file into a `libtool` object:
`libtool --mode=compile gcc {{[-c|--compile]}} {{path/to/source.c}} {{[-o|--output]}} {{path/to/source.lo}}`
`libtool {{[c|compile]}} gcc {{[-c|--compile]}} {{path/to/source.c}} {{[-o|--output]}} {{path/to/source.lo}}`
- Create a library or an executable:
`libtool --mode=link gcc {{[-o|--output]}} {{path/to/library.lo}} {{path/to/source.lo}}`
`libtool {{[l|link]}} gcc {{[-o|--output]}} {{path/to/library.lo}} {{path/to/source.lo}}`
- Automatically set the library path so that another program can use uninstalled `libtool` generated programs or libraries:
`libtool --mode=execute gdb {{path/to/program}}`
`libtool {{[e|execute]}} gdb {{path/to/program}}`
- Install a shared library:
`libtool --mode=install cp {{path/to/library.la}} {{path/to/installation_directory}}`
`libtool {{[i|install]}} cp {{path/to/library.la}} {{path/to/installation_directory}}`
- Complete the installation of `libtool` libraries on the system:
`libtool --mode=finish {{path/to/installation_dir}}`
`libtool {{[f|finish]}} {{path/to/installation_dir}}`
- Delete installed libraries or executables:
`libtool --mode=uninstall {{path/to/installed_library.la}}`
`libtool {{[u|uninstall]}} {{path/to/installed_library.la}}`
- Delete uninstalled libraries or executables:
`libtool --mode=clean rm {{path/to/source.lo}} {{path/to/library.la}}`
`libtool {{[cl|clean]}} rm {{path/to/source.lo}} {{path/to/library.la}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# macchanger
> Command-line utility for manipulating network interface MAC addresses.
> Manipulate network interface MAC addresses.
> More information: <https://manned.org/macchanger>.
- View the current and permanent MAC addresses of a interface:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pkcon
> Command line client for PackageKit console program used by Discover and Gnome software and alternative to 'apt'.
> PackageKit client used by Discover and Gnome software and alternative to `apt`.
> More information: <https://manned.org/pkcon>.
- Install a package:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# rspamc
> Command-line client for rspamd servers.
> Client for `rspamd` servers.
> More information: <https://manned.org/rspamc>.
- Train the bayesian filter to recognise an email as spam:

18
tldr/linux/runlevel Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# runlevel
> SysV runlevel utility.
> See also: `init`.
> More information: <https://manned.org/runlevel>.
- Return previous and current SysV runlevel:
`runlevel`
- Display help:
`runlevel --help`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# uvcdynctrl
> A libwebcam command-line tool to manage dynamic controls in uvcvideo.
> Manage dynamic controls in uvcvideo.
> More information: <https://manned.org/uvcdynctrl>.
- List all available cameras:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# xdg-desktop-menu
> Command-line tool for installing or uninstalling desktop menu items.
> Install or uninstall desktop menu items.
> More information: <https://manned.org/xdg-desktop-menu>.
- Install an application to the desktop menu system:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# xdotool
> Command-line automation for X11.
> Automate X11 actions.
> More information: <https://manned.org/xdotool>.
- Retrieve the X-Windows window ID of the running Firefox window(s):

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`xhost -{{hostname}}`
- Allow all hosts to connect (disable access control insecure):
- Allow all hosts to connect (disable access control - insecure):
`xhost +`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# xsetwacom
> Command-line tool to change settings for Wacom pen tablets at runtime.
> Change settings for Wacom pen tablets at runtime.
> More information: <https://manned.org/xsetwacom>.
- List all the available Wacom devices. The device name is in the first column: