Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-31 00:21:38 +00:00
parent f892946174
commit fcb8fde17a
127 changed files with 564 additions and 116 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# acme.sh
> Shell script implementing ACME client protocol, an alternative to `certbot`.
> See also `acme.sh dns`.
> See also: `acme.sh dns`.
> More information: <https://github.com/acmesh-official/acme.sh>.
- Issue a certificate using webroot mode:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# arch
> Display the name of the system architecture.
> See also `uname`.
> See also: `uname`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html>.
- Display the system's architecture:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Scan logs for messages pertaining to denied permissions.
> Generate a report of Type Enforcement (TE) rules that might allow successful operations.
> See also `audit2why`.
> See also: `audit2why`.
> More information: <https://manned.org/audit2allow>.
- Show all generated messages in audit and message logs:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bg
> Resume suspended jobs (e.g. using `<Ctrl z>`), and keeps them running in the background.
> See also: `jobs`, `fg` and `disown`.
> See also: `jobs`, `fg`, `disown`.
> More information: <https://manned.org/bg>.
- Resume the most recently suspended job and run it in the background:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bshell
> A GUI for browsing for SSH/VNC servers on the local network.
> See also: `bssh` and `bvnc`.
> See also: `bssh`, `bvnc`.
> More information: <https://manned.org/bshell>.
- Browse for both SSH and VNC servers:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bssh
> A GUI tool for browsing for SSH/VNC servers on the local network.
> See also: `bvnc` and `bshell`.
> See also: `bvnc`, `bshell`.
> More information: <https://manned.org/bssh>.
- Browse for SSH servers:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bvnc
> A GUI tool for browsing for SSH/VNC servers on the local network.
> See also: `bssh` and `bshell`.
> See also: `bssh`, `bshell`.
> More information: <https://manned.org/bvnc>.
- Browse for VNC servers:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# byobu
> Window manager and terminal multiplexer.
> See also: `tmux` and `screen`.
> See also: `tmux`, `screen`.
> More information: <https://www.byobu.org/documentation>.
- Start a new session:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# docker image
> Manage Docker images.
> See also: `docker build`, `docker import`, and `docker pull`.
> See also: `docker build`, `docker import`, `docker pull`.
> More information: <https://docs.docker.com/reference/cli/docker/image/>.
- List local Docker images:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Freeze stages in the DVC pipeline.
> This prevents DVC from tracking changes in stage dependencies and re-execution until unfreeze.
> See also `dvs unfreeze`.
> See also: `dvs unfreeze`.
> More information: <https://dvc.org/doc/command-reference/freeze>.
- Freeze one or more specified stages:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Unfreeze stages in the DVC pipeline.
> This allows DVC to start tracking changes in stage dependencies again after they were frozen.
> See also `dvc freeze`.
> See also: `dvc freeze`.
> More information: <https://dvc.org/doc/command-reference/unfreeze>.
- Unfreeze one or more specified stages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# emacs
> The extensible, customizable, self-documenting, real-time display editor.
> See also `emacsclient`.
> See also: `emacsclient`.
> More information: <https://www.gnu.org/software/emacs>.
- Start Emacs and open a file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# emacsclient
> Open files in an existing Emacs server.
> See also `emacs`.
> See also: `emacs`.
> More information: <https://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html>.
- Open a file in an existing Emacs server (using GUI if available):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# encfs
> Mount or create encrypted virtual filesystems.
> See also `fusermount`, which can unmount filesystems mounted by this command.
> See also: `fusermount` which can unmount filesystems mounted by this command.
> More information: <https://github.com/vgough/encfs>.
- Initialize or mount an encrypted filesystem:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# eqn
> Equation preprocessor for the groff (GNU Troff) document formatting system.
> See also `troff` and `groff`.
> See also: `troff`, `groff`.
> More information: <https://manned.org/eqn>.
- Process input with equations, saving the output for future typesetting with groff to PostScript:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fg
> Run jobs in foreground.
> See also: `jobs`, `bg` and `disown`.
> See also: `jobs`, `bg`, `disown`.
> More information: <https://manned.org/fg>.
- Bring most recently suspended or running background job to foreground:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# flutter pub
> Flutter's package manager.
> Note: Packages are available on <https://pub.dev>. See also: `flutter`.
> Note: Packages are available on <https://pub.dev>.
> See also: `flutter`.
> More information: <https://docs.flutter.dev/packages-and-plugins/using-packages>.
- Download/Update all packages specified in `pubspec.yaml`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gcloud help
> Display help and reference information for `gcloud`.
> See also: `gcloud topic`, for supplementary help topics not directly associated with individual commands.
> See also: `gcloud topic` for supplementary help topics not directly associated with individual commands.
> More information: <https://cloud.google.com/sdk/gcloud/reference/help>.
- Search the `gcloud` CLI reference documents for specific terms:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# gcloud logging logs list
> List logs in a Google Cloud project.
> Useful for identifying available logs for monitoring and analysis. See also: `gcloud`.
> Useful for identifying available logs for monitoring and analysis.
> See also: `gcloud`.
> More information: <https://cloud.google.com/sdk/gcloud/reference/logging/logs/list>.
- List all logs in the current project:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# gcloud sql export sql
> Export data from a Cloud SQL instance to an SQL file in Google Cloud Storage.
> Useful for creating backups or migrating data. See also: `gcloud`.
> Useful for creating backups or migrating data.
> See also: `gcloud`.
> More information: <https://cloud.google.com/sdk/gcloud/reference/sql/export/sql>.
- Export data from a specific Cloud SQL instance to a Google Cloud Storage bucket as an SQL dump file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git am
> Apply patch files and create a commit. Useful when receiving commits via email.
> See also `git format-patch`, which can generate patch files.
> See also: `git format-patch` which can generate patch files.
> More information: <https://git-scm.com/docs/git-am>.
- Apply and commit changes following a local patch file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git apply
> Apply a patch to files and/or to the index without creating a commit.
> See also `git am`, which applies a patch and also creates a commit.
> See also: `git am` which applies a patch and also creates a commit.
> More information: <https://git-scm.com/docs/git-apply>.
- Print messages about the patched files:

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`git cherry-pick {{commit}}`
- Apply a range of commits to the current branch (see also `git rebase --onto`):
- Apply a range of commits to the current branch (see also: `git rebase --onto`):
`git cherry-pick {{start_commit}}~..{{end_commit}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git format-patch
> Prepare .patch files. Useful when emailing commits elsewhere.
> See also `git am`, which can apply generated .patch files.
> See also: `git am` which can apply generated .patch files.
> More information: <https://git-scm.com/docs/git-format-patch>.
- Create an auto-named `.patch` file for all the unpushed commits:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# git ignore
> Show/update `.gitignore` files.
> Part of `git-extras`. See also `git ignore-io`.
> Part of `git-extras`.
> See also: `git ignore-io`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-ignore>.
- Show the content of all global and local `.gitignore` files:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# git lock
> Lock a file in a Git repository from being modified by a commit.
> Part of `git-extras`. See also `git-unlock`.
> Part of `git-extras`.
> See also: `git-unlock`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-lock>.
- Disable the ability to commit changes of a local file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git restore
> Restore working tree files. Requires Git version 2.23+.
> See also `git checkout` and `git reset`.
> See also: `git checkout`, `git reset`.
> More information: <https://git-scm.com/docs/git-restore>.
- Restore an unstaged file to the staged version:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git switch
> Switch between Git branches. Requires Git version 2.23+.
> See also `git checkout`.
> See also: `git checkout`.
> More information: <https://git-scm.com/docs/git-switch>.
- Switch to an existing branch:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# git unlock
> Unlock a file in a Git repository so it can be modified by a commit.
> Part of `git-extras`. See also `git lock`.
> Part of `git-extras`.
> See also: `git lock`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-unlock>.
- Enable the ability to commit changes of a previously-locked local file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git whatchanged
> Show what has changed with recent commits or files.
> See also `git log`.
> See also: `git log`.
> More information: <https://git-scm.com/docs/git-whatchanged>.
- Display logs and changes for recent commits:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# grap
> A charting preprocessor for the groff (GNU Troff) document formatting system.
> See also `pic` and `groff`.
> See also: `pic`, `groff`.
> More information: <https://manned.org/grap>.
- Process a `grap` file and save the output file for future processing with `pic` and `groff`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hub branch
> Create a branch or show current branch.
> See also `git branch`.
> See also: `git branch`.
- Show the name of the currently active branch:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kube-fzf
> Shell commands for command-line fuzzy searching of Kubernetes Pods.
> See also `kubectl` for related commands.
> See also: `kubectl` for related commands.
> More information: <https://github.com/thecasualcoder/kube-fzf>.
- Get pod details (from current namespace):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lambo
> A super-powered `laravel new` for Laravel and Valet.
> See also `lambo new` for additional command flags.
> See also: `lambo new` for additional command flags.
> More information: <https://github.com/tighten/lambo#usage>.
- Create a new Laravel application:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# alien
> Convert different installation packages to other formats.
> See also: `debtap`, for `.deb` conversion on Arch Linux.
> See also: `debtap` for `.deb` conversion on Arch Linux.
> More information: <https://manned.org/alien>.
- Convert a specific installation file to Debian format (`.deb` extension):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# aurman
> An Arch Linux utility to build and install packages from the Arch User Repository.
> See also `pacman`.
> See also: `pacman`.
> More information: <https://github.com/polygamma/aurman>.
- Synchronize and update all packages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bspwm
> A tiling window manager based on binary space partitioning.
> See also: `bspc`, for controlling it.
> See also: `bspc` for controlling it.
> More information: <https://github.com/baskerville/bspwm>.
- Start `bspwm` (note that a pre-existing window manager must not be open when this command is run):

33
tldr/linux/bsub Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# bsub
> Submit batch jobs to LSF (Load Sharing Facility) scheduler.
> More information: <https://www.ibm.com/docs/spectrum-lsf/latest?topic=reference-bsub>.
- Submit a script file as a job:
`bsub {{path/to/script.sh}}`
- Submit a job to a specific queue:
`bsub -q {{queue_name}} make all`
- Submit a job with a name and redirect output and error:
`bsub -J {{job_name}} --output {{path/to/output.log}} --error {{path/to/error.log}} {{path/to/script.sh}}`
- Request 8 CPU cores and 16GB memory for a command:
`bsub -n 8 -M 16G cargo build --release`
- Run an interactive shell in the current session:
`bsub -I bash`
- Submit a job with a runtime limit of 45 minutes:
`bsub -W 45 {{path/to/script.sh}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# compsize
> Calculate the compression ratio of a set of files on a btrfs filesystem.
> See also `btrfs filesystem` for recompressing a file by defragmenting it.
> See also: `btrfs filesystem` for recompressing a file by defragmenting it.
> More information: <https://manned.org/compsize>.
- Calculate the current compression ratio for a file or directory:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# ddcutil
> Control the settings of connected displays via DDC/CI.
> This command requires the kernel module `i2c-dev` to be loaded. See also: `modprobe`.
> This command requires the kernel module `i2c-dev` to be loaded.
> See also: `modprobe`.
> More information: <https://www.ddcutil.com>.
- List all compatible displays:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change DOS-style line endings to Unix-style.
> Replaces CRLF with LF.
> See also `unix2dos`, `unix2mac`, and `mac2unix`.
> See also: `unix2dos`, `unix2mac`, `mac2unix`.
> More information: <https://manned.org/dos2unix>.
- Change the line endings of a file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# extundelete
> Recover deleted files from ext3 or ext4 partitions by parsing the journal.
> See also `date` for Unix time information and `umount` for unmounting partitions.
> See also: `date` for Unix time information and `umount` for unmounting partitions.
> More information: <https://extundelete.sourceforge.net/options.html>.
- Restore all deleted files inside partition N on device X:

View File

@@ -5,18 +5,26 @@ source: https://github.com/tldr-pages/tldr.git
---
# flock
> Manage locks from shell scripts.
> It can be used to ensure that only one process of a command is running.
> Manage file locks from shell scripts.
> It can be used to ensure that only one instance of a command is running.
> More information: <https://manned.org/flock>.
- Run a command with a file lock as soon as the lock is not required by others:
- Run a command with a file lock as soon as the lock is available:
`flock {{path/to/lock.lock}} {{[-c|--command]}} "{{command}}"`
`flock {{path/to/lock.lock}} {{command}}`
- Run a command with a file lock, and exit if the lock doesn't exist:
- Run a command with a file lock, or exit if the lock is currently being held (with exit code 1):
`flock {{path/to/lock.lock}} {{[-n|--nonblock]}} {{[-c|--command]}} "{{command}}"`
`flock {{path/to/lock.lock}} {{[-n|--nonblock]}} {{command}}`
- Run a command with a file lock, and exit with a specific error code if the lock doesn't exist:
- Run a command with a file lock, or exit with a specific error code if the lock is currently being held:
`flock {{path/to/lock.lock}} {{[-n|--nonblock]}} {{[-E|--conflict-exit-code]}} {{error_code}} {{[-c|--command]}} "{{command}}"`
`flock {{path/to/lock.lock}} {{[-n|--nonblock]}} {{[-E|--conflict-exit-code]}} {{123}} {{command}}`
- Run a command with a file lock, waiting up to 10 seconds for the lock to be available before giving up:
`flock {{path/to/lock.lock}} {{[-w|--timeout]}} 10 {{command}}`
- Backup a bunch of files, waiting for the previous `tar` command to finish if it's still running elsewhere and holding the same lock file (can be used in a `cron` job that runs often):
`flock {{path/to/backup.lock}} {{tar -cvf path/to/backup.tar path/to/data/}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# insmod
> Dynamically load modules into the Linux Kernel.
> See also: `kmod`, for other module management commands.
> See also: `kmod` for other module management commands.
> More information: <https://manned.org/insmod>.
- Insert a kernel module into the Linux kernel:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# iptables
> Configure tables, chains and rules of the Linux kernel IPv4 firewall.
> Use `ip6tables` to set rules for IPv6 traffic. See also: `iptables-save`, `iptables-restore`.
> Use `ip6tables` to set rules for IPv6 traffic.
> See also: `iptables-save`, `iptables-restore`.
> More information: <https://manned.org/iptables>.
- View chains, rules, packet/byte counters and line numbers for the filter table:

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> For a list of channels, frequencies and reg information: <https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html>.
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
- Set device to monitor mode (interface must be down first. See also `ip link`):
- Set device to monitor mode (interface must be down first. See also: `ip link`):
`sudo iw dev {{wlp}} set type monitor`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kwrite
> Text editor of the KDE Desktop project.
> See also `kate`.
> See also: `kate`.
> More information: <https://docs.kde.org/stable5/en/kate/kwrite/command-line-options.html>.
- Open a text file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ldapdomaindump
> Dump users, computers, groups, OS and membership information via LDAP to HTML, JSON and greppable output.
> See also `ldapsearch`.
> See also: `ldapsearch`.
> More information: <https://github.com/dirkjanm/ldapdomaindump#usage>.
- Dump all information using the given LDAP account:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lsmod
> Show the status of Linux kernel modules.
> See also: `kmod`, for other module management commands.
> See also: `kmod` for other module management commands.
> More information: <https://manned.org/lsmod>.
- List all currently loaded kernel modules:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change macOS-style line endings to Unix-style.
> Replaces CR with LF.
> See also `unix2dos`, `unix2mac`, and `dos2unix`.
> See also: `unix2dos`, `unix2mac`, `dos2unix`.
> More information: <https://manned.org/mac2unix>.
- Change the line endings of a file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mesg
> Check or set a terminal's ability to receive messages from other users, usually from the `write` command.
> See also `write`, `talk`.
> See also: `write`, `talk`.
> More information: <https://manned.org/mesg>.
- Check terminal's openness to write messages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# modinfo
> Extract information about a Linux kernel module.
> See also: `kmod`, for other module management commands.
> See also: `kmod` for other module management commands.
> More information: <https://manned.org/modinfo>.
- List all attributes of a kernel module:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# modprobe
> Add or remove modules from the Linux kernel.
> See also: `kmod`, for other module management commands.
> See also: `kmod` for other module management commands.
> More information: <https://manned.org/modprobe>.
- Pretend to load a module into the kernel, but don't actually do it:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# openrc
> The OpenRC service manager.
> See also: `rc-status`, `rc-update`, and `rc-service`.
> See also: `rc-status`, `rc-update`, `rc-service`.
> More information: <https://wiki.gentoo.org/wiki/OpenRC>.
- Change to a specific runlevel:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkgfile
> Search files from packages in the official repositories on Arch-based systems.
> See also: `pacman files`, describing the usage of `pacman --files`.
> See also: `pacman files` describing the usage of `pacman --files`.
> More information: <https://manned.org/pkgfile>.
- Synchronize the pkgfile database:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# postfix
> Postfix mail transfer agent (MTA) control program.
> See also `dovecot`, a mail delivery agent (MDA) that integrates with Postfix.
> See also: `dovecot`, a mail delivery agent (MDA) that integrates with Postfix.
> More information: <https://www.postfix.org>.
- Check the configuration:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pw-dot
> Create `.dot` files of the PipeWire graph.
> See also: `dot`, for rendering graph.
> See also: `dot` for rendering graph.
> More information: <https://docs.pipewire.org/page_man_pw-dot_1.html>.
- Generate a graph to `pw.dot` file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# quickemu
> Build and manage highly optimised desktop virtual machines quickly.
> See also: `quickget`, for preparing VM configurations.
> See also: `quickget` for preparing VM configurations.
> More information: <https://github.com/quickemu-project/quickemu>.
- Create and run a virtual machine from a configuration file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rc-service
> Locate and run OpenRC services with arguments.
> See also `openrc`.
> See also: `openrc`.
> More information: <https://manned.org/rc-service>.
- Show a service's status:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rc-status
> Show status info about runlevels.
> See also `openrc`.
> See also: `openrc`.
> More information: <https://manned.org/rc-status>.
- Show a summary of services and their status:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rc-update
> Add and remove OpenRC services to and from runlevels.
> See also `openrc`.
> See also: `openrc`.
> More information: <https://manned.org/rc-update>.
- List enabled services and the runlevels they are added to:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rmmod
> Remove modules from the Linux kernel.
> See also: `kmod`, for other module management commands.
> See also: `kmod` for other module management commands.
> More information: <https://manned.org/rmmod>.
- Remove a module from the kernel:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sinfo
> View information about Slurm nodes and partitions.
> See also `squeue` and `sbatch`, which are also part of the Slurm workload manager.
> See also: `squeue`, `sbatch`, which are also part of the Slurm workload manager.
> More information: <https://slurm.schedmd.com/sinfo.html>.
- Show a quick summary overview of the cluster:

42
tldr/linux/stratis Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# stratis
> Manage local storage pools and volumes using the Stratis storage manager.
> Stratis volumes use the XFS filesystem and require the `stratisd` service.
> More information: <https://stratis-storage.github.io>.
- Start the Stratis service (must be active before managing pools or volumes):
`sudo systemctl start stratisd`
- Create a storage pool from one or more devices:
`sudo stratis pool create {{pool_name}} {{/dev/sdX}} {{/dev/sdY}}`
- Create a filesystem (volume) in a pool:
`sudo stratis filesystem create {{pool_name}} {{volume_name}}`
- List all Stratis filesystems:
`sudo stratis filesystem list`
- Format and mount a Stratis volume manually:
`sudo mkfs.xfs /dev/stratis/{{pool_name}}/{{volume_name}} && sudo mount /dev/stratis/{{pool_name}}/{{volume_name}} {{/mnt/target}}`
- Add a volume to `/etc/fstab` for mounting at boot:
`echo /dev/stratis/{{pool_name}}/{{volume_name}} {{/mnt/target}} xfs defaults,x-systemd.requires=stratisd.service 0 0 | sudo tee {{[-a|--append]}} /etc/fstab`
- Extend an existing pool by adding a new device:
`sudo stratis pool add-data {{pool_name}} {{/dev/sdZ}}`
- Delete a volume:
`sudo stratis filesystem destroy {{pool_name}} {{volume_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlp
> Advanced power management for Linux.
> See also `tlp-stat`.
> See also: `tlp-stat`.
> More information: <https://linrunner.de/tlp/usage/tlp.html>.
- Apply settings (according to the actual power source):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlp-stat
> Generate TLP status reports.
> See also `tlp`.
> See also: `tlp`.
> More information: <https://linrunner.de/tlp/usage/tlp-stat>.
- Generate status report with configuration and all active settings:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change Unix-style line endings to DOS-style.
> Replaces LF with CRLF.
> See also `unix2mac`, `dos2unix`, and `mac2unix`.
> See also: `unix2mac`, `dos2unix`, `mac2unix`.
> More information: <https://manned.org/unix2dos>.
- Change the line endings of a file:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Change Unix-style line endings to macOS-style.
> Replaces LF with CR.
> See also `unix2dos`, `dos2unix`, and `mac2unix`.
> See also: `unix2dos`, `dos2unix`, `mac2unix`.
> More information: <https://manned.org/unix2mac>.
- Change the line endings of a file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# uuid
> Generate and decode Universally Unique Identifiers (UUID).
> See also `uuidgen`.
> See also: `uuidgen`.
> More information: <https://manned.org/uuid>.
- Generate a UUIDv1 (based on time and system's hardware address, if present):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# uuidgen
> Generate unique identifiers (UUIDs).
> See also `uuid`.
> See also: `uuid`.
> More information: <https://manned.org/uuidgen>.
- Create a random UUIDv4:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# vgscan
> Scan for volume groups on all supported Logical Volume Manager (LVM) block devices.
> See also: `lvm` and `vgchange`.
> See also: `lvm`, `vgchange`.
> More information: <https://manned.org/vgscan>.
- Scan for volume groups and print information about each group found:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# write
> Write a message on the terminal of a specified logged in user (`<Ctrl c>` to stop writing messages).
> Use the `who` command to find out all terminal_ids of all active users active on the system. See also `mesg`.
> Use the `who` command to find out all terminal_ids of all active users active on the system.
> See also: `mesg`.
> More information: <https://manned.org/write>.
- Send a message to a given user on a given terminal ID:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# local
> Declare local variables and give them attributes.
> See also: `declare` and `export`.
> See also: `declare`, `export`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-local>.
- Declare a string variable with the specified value:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lpr
> Print files.
> See also: `lpstat` and `lpadmin`.
> See also: `lpstat`, `lpadmin`.
> More information: <https://openprinting.github.io/cups/doc/man-lpr.html>.
- Print a file to the default printer:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mesg
> Check or set a terminal's ability to receive messages from other users, usually from the `write` command.
> See also `write`, `talk`.
> See also: `write`, `talk`.
> More information: <https://manned.org/mesg.1p>.
- Check terminal's openness to write messages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# minetest
> Multiplayer infinite-world block sandbox.
> See also `minetestserver`, the server-only binary.
> See also: `minetestserver`, the server-only binary.
> More information: <https://wiki.minetest.org/Minetest>.
- Start Minetest in client mode:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# minetestserver
> Multiplayer infinite-world block sandbox server.
> See also `minetest`, the graphical client.
> See also: `minetest`, the graphical client.
> More information: <https://wiki.minetest.org/Setting_up_a_server>.
- Start the server:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mitmproxy
> An interactive man-in-the-middle HTTP proxy.
> See also: `mitmweb` and `mitmdump`.
> See also: `mitmweb`, `mitmdump`.
> More information: <https://docs.mitmproxy.org/stable/>.
- Start `mitmproxy` with default settings (will listen on port `8080`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mosquitto_passwd
> Manage password files for mosquitto.
> See also `mosquitto`, the MQTT server that this manages.
> See also: `mosquitto`, the MQTT server that this manages.
> More information: <https://mosquitto.org/man/mosquitto_passwd-1.html>.
- Add a new user to a password file (will prompt to enter the password):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mysqldump
> Backups MySQL databases.
> See also `mysql` for restoring databases.
> See also: `mysql` for restoring databases.
> More information: <https://dev.mysql.com/doc/refman/en/mysqldump.html>.
- Create a backup (user will be prompted for a password):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# netperf
> Client-side command for `netperf`, the benchmarking application that measures network throughput. Similar to `iperf`.
> See also: `netserver`, for the server-side command.
> See also: `netserver` for the server-side command.
> More information: <https://hewlettpackard.github.io/netperf/doc/netperf.html#Global-Command_002dline-Options>.
- Connect to server on a specific IP address via default port (12865):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# netserver
> Server-side command for `netperf`, the benchmarking application that measures network throughput.
> See also: `netperf`, for the client-side command.
> See also: `netperf` for the client-side command.
> More information: <https://manned.org/netserver.1>.
- Start a server on the default port (12865) and fork to background:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# odps auth
> User authorities in ODPS (Open Data Processing Service).
> See also `odps`.
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Add a user to the current project:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# odps func
> Manage functions in ODPS (Open Data Processing Service).
> See also `odps`.
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Show functions in the current project:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# odps inst
> Manage instances in ODPS (Open Data Processing Service).
> See also `odps`.
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Show instances created by current user:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# odps resource
> Manage resources in ODPS (Open Data Processing Service).
> See also `odps`.
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Show resources in the current project:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# odps table
> Create and modify tables in ODPS (Open Data Processing Service).
> See also `odps`.
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Create a table with partition and lifecycle:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# odps tunnel
> Data tunnel in ODPS (Open Data Processing Service).
> See also `odps`.
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Download table to local file:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# coreautha
> A system agent providing the `LocalAuthentication` framework.
> It should not be invoked manually. See also: `coreauthd`.
> It should not be invoked manually.
> See also: `coreauthd`.
> More information: <https://keith.github.io/xcode-man-pages/coreautha.8.html>.
- Start the agent:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# coreauthd
> A system daemon providing the `LocalAuthentication` framework.
> It should not be invoked manually. See also: `coreautha`.
> It should not be invoked manually.
> See also: `coreautha`.
> More information: <https://keith.github.io/xcode-man-pages/coreauthd.8.html>.
- Start the agent:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# dhcp6d
> Stateless DHCPv6 server. See also: `InternetSharing`.
> Stateless DHCPv6 server.
> See also: `InternetSharing`.
> It should not be invoked manually.
> More information: <https://www.manpagez.com/man/8/dhcp6d/>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pic
> Picture preprocessor for the groff (GNU Troff) document formatting system.
> See also `groff` and `troff`.
> See also: `groff`, `troff`.
> More information: <https://manned.org/pic>.
- Process input with pictures, saving the output for future typesetting with groff to PostScript:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# podman image
> Manage Docker images.
> See also: `podman build`, `podman import`, and `podman pull`.
> See also: `podman build`, `podman import`, `podman pull`.
> More information: <https://docs.podman.io/en/latest/markdown/podman-image.1.html>.
- List local Docker images:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pueue stash
> Stash tasks to prevent them starting automatically.
> See also `pueue start` and `pueue enqueue`.
> See also: `pueue start`, `pueue enqueue`.
> More information: <https://github.com/Nukesor/pueue>.
- Stash an enqueued task:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Markdown note-taking application.
> Optionally integrates with the note-taking applications of Nextcloud and ownCloud.
> See also: `qc`, for managing command snippets.
> See also: `qc` for managing command snippets.
> More information: <https://www.qownnotes.org/getting-started/cli-parameters.html>.
- Run in portable mode:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Restricted Bash shell, equivalent to `bash --restricted`.
> Does not permit changing the working directory, redirecting command output, or modifying environment variables, among other things.
> See also `histexpand` for history expansion.
> See also: `histexpand` for history expansion.
> More information: <https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell>.
- Start an interactive shell session:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# screen
> Hold a session open on a remote server. Manage multiple windows with a single SSH connection.
> See also `tmux` and `zellij`.
> See also: `tmux`, `zellij`.
> More information: <https://manned.org/screen>.
- Start a new screen session:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sh
> Bourne shell, the standard command language interpreter.
> See also `histexpand` for history expansion.
> See also: `histexpand` for history expansion.
> More information: <https://manned.org/sh>.
- Start an interactive shell session:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# showfigfonts
> Display available figlet fonts.
> See also `figlet`.
> See also: `figlet`.
> More information: <https://manned.org/showfigfonts>.
- Display available fonts:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Spawn an SSH Agent process.
> An SSH Agent holds SSH keys decrypted in memory until removed or the process is killed.
> See also `ssh-add`, which can add and manage keys held by an SSH Agent.
> See also: `ssh-add`, which can add and manage keys held by an SSH Agent.
> More information: <https://man.openbsd.org/ssh-agent>.
- Start an SSH Agent for the current shell:

Some files were not shown because too many files have changed in this diff Show More