From fcb8fde17ad54332e02ecda33eea579c2e029652 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 31 Jul 2025 00:21:38 +0000 Subject: [PATCH] Update cheatsheets --- tldr/acme.sh | 2 +- tldr/arch | 2 +- tldr/audit2allow | 2 +- tldr/bg | 2 +- tldr/bshell | 2 +- tldr/bssh | 2 +- tldr/bvnc | 2 +- tldr/byobu | 2 +- tldr/docker-image | 2 +- tldr/dvc-freeze | 2 +- tldr/dvc-unfreeze | 2 +- tldr/emacs | 2 +- tldr/emacsclient | 2 +- tldr/encfs | 2 +- tldr/eqn | 2 +- tldr/fg | 2 +- tldr/flutter-pub | 3 ++- tldr/gcloud-help | 2 +- tldr/gcloud-logging-logs-list | 3 ++- tldr/gcloud-sql-export-sql | 3 ++- tldr/git-am | 2 +- tldr/git-apply | 2 +- tldr/git-cherry-pick | 2 +- tldr/git-format-patch | 2 +- tldr/git-ignore | 3 ++- tldr/git-lock | 3 ++- tldr/git-restore | 2 +- tldr/git-switch | 2 +- tldr/git-unlock | 3 ++- tldr/git-whatchanged | 2 +- tldr/grap | 2 +- tldr/hub-branch | 2 +- tldr/kube-fzf | 2 +- tldr/lambo | 2 +- tldr/linux/alien | 2 +- tldr/linux/aurman | 2 +- tldr/linux/bspwm | 2 +- tldr/linux/bsub | 33 ++++++++++++++++++++++++++ tldr/linux/compsize | 2 +- tldr/linux/ddcutil | 3 ++- tldr/linux/dos2unix | 2 +- tldr/linux/extundelete | 2 +- tldr/linux/flock | 24 ++++++++++++------- tldr/linux/insmod | 2 +- tldr/linux/iptables | 3 ++- tldr/linux/iw-dev | 2 +- tldr/linux/kwrite | 2 +- tldr/linux/ldapdomaindump | 2 +- tldr/linux/lsmod | 2 +- tldr/linux/mac2unix | 2 +- tldr/linux/mesg | 2 +- tldr/linux/modinfo | 2 +- tldr/linux/modprobe | 2 +- tldr/linux/openrc | 2 +- tldr/linux/pkgfile | 2 +- tldr/linux/postfix | 2 +- tldr/linux/pw-dot | 2 +- tldr/linux/quickemu | 2 +- tldr/linux/rc-service | 2 +- tldr/linux/rc-status | 2 +- tldr/linux/rc-update | 2 +- tldr/linux/rmmod | 2 +- tldr/linux/sinfo | 2 +- tldr/linux/stratis | 42 +++++++++++++++++++++++++++++++++ tldr/linux/tlp | 2 +- tldr/linux/tlp-stat | 2 +- tldr/linux/unix2dos | 2 +- tldr/linux/unix2mac | 2 +- tldr/linux/uuid | 2 +- tldr/linux/uuidgen | 2 +- tldr/linux/vgscan | 2 +- tldr/linux/write | 3 ++- tldr/local | 2 +- tldr/lpr | 2 +- tldr/mesg | 2 +- tldr/minetest | 2 +- tldr/minetestserver | 2 +- tldr/mitmproxy | 2 +- tldr/mosquitto_passwd | 2 +- tldr/mysqldump | 2 +- tldr/netperf | 2 +- tldr/netserver | 2 +- tldr/odps-auth | 2 +- tldr/odps-func | 2 +- tldr/odps-inst | 2 +- tldr/odps-resource | 2 +- tldr/odps-table | 2 +- tldr/odps-tunnel | 2 +- tldr/osx/coreautha | 3 ++- tldr/osx/coreauthd | 3 ++- tldr/osx/dhcp6d | 3 ++- tldr/pic | 2 +- tldr/podman-image | 2 +- tldr/pueue-stash | 2 +- tldr/qownnotes | 2 +- tldr/rbash | 2 +- tldr/screen | 2 +- tldr/sh | 2 +- tldr/showfigfonts | 2 +- tldr/ssh-agent | 2 +- tldr/tbl | 2 +- tldr/troff | 2 +- tldr/trunk | 29 +++++++++++++++++++++++ tldr/uname | 2 +- tldr/vegeta | 2 +- tldr/windows/mimikatz | 42 +++++++++++++++++++++++++++++++++ tldr/windows/mimikatz-crypto | 21 +++++++++++++++++ tldr/windows/mimikatz-dpapi | 21 +++++++++++++++++ tldr/windows/mimikatz-event | 17 +++++++++++++ tldr/windows/mimikatz-kerberos | 21 +++++++++++++++++ tldr/windows/mimikatz-lsadump | 22 +++++++++++++++++ tldr/windows/mimikatz-misc | 21 +++++++++++++++++ tldr/windows/mimikatz-net | 21 +++++++++++++++++ tldr/windows/mimikatz-privilege | 17 +++++++++++++ tldr/windows/mimikatz-process | 17 +++++++++++++ tldr/windows/mimikatz-sekurlsa | 22 +++++++++++++++++ tldr/windows/mimikatz-service | 21 +++++++++++++++++ tldr/windows/mimikatz-standard | 21 +++++++++++++++++ tldr/windows/mimikatz-token | 21 +++++++++++++++++ tldr/windows/mimikatz-vault | 17 +++++++++++++ tldr/windows/pushd | 2 +- tldr/windows/replace | 2 +- tldr/write | 3 ++- tldr/x11docker | 2 +- tldr/ybacklight | 3 ++- tldr/zellij | 2 +- tldr/zmv | 2 +- 127 files changed, 564 insertions(+), 116 deletions(-) create mode 100644 tldr/linux/bsub create mode 100644 tldr/linux/stratis create mode 100644 tldr/trunk create mode 100644 tldr/windows/mimikatz create mode 100644 tldr/windows/mimikatz-crypto create mode 100644 tldr/windows/mimikatz-dpapi create mode 100644 tldr/windows/mimikatz-event create mode 100644 tldr/windows/mimikatz-kerberos create mode 100644 tldr/windows/mimikatz-lsadump create mode 100644 tldr/windows/mimikatz-misc create mode 100644 tldr/windows/mimikatz-net create mode 100644 tldr/windows/mimikatz-privilege create mode 100644 tldr/windows/mimikatz-process create mode 100644 tldr/windows/mimikatz-sekurlsa create mode 100644 tldr/windows/mimikatz-service create mode 100644 tldr/windows/mimikatz-standard create mode 100644 tldr/windows/mimikatz-token create mode 100644 tldr/windows/mimikatz-vault diff --git a/tldr/acme.sh b/tldr/acme.sh index 78c1a4fc..0880a00c 100644 --- a/tldr/acme.sh +++ b/tldr/acme.sh @@ -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: . - Issue a certificate using webroot mode: diff --git a/tldr/arch b/tldr/arch index 7c8b5584..1d06b28e 100644 --- a/tldr/arch +++ b/tldr/arch @@ -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: . - Display the system's architecture: diff --git a/tldr/audit2allow b/tldr/audit2allow index 4c2d6cbd..d9302b5a 100644 --- a/tldr/audit2allow +++ b/tldr/audit2allow @@ -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: . - Show all generated messages in audit and message logs: diff --git a/tldr/bg b/tldr/bg index b2d1952c..f243d697 100644 --- a/tldr/bg +++ b/tldr/bg @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # bg > Resume suspended jobs (e.g. using ``), and keeps them running in the background. -> See also: `jobs`, `fg` and `disown`. +> See also: `jobs`, `fg`, `disown`. > More information: . - Resume the most recently suspended job and run it in the background: diff --git a/tldr/bshell b/tldr/bshell index 21dbeea6..31725c4d 100644 --- a/tldr/bshell +++ b/tldr/bshell @@ -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: . - Browse for both SSH and VNC servers: diff --git a/tldr/bssh b/tldr/bssh index 1d0e13cd..b5145a5d 100644 --- a/tldr/bssh +++ b/tldr/bssh @@ -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: . - Browse for SSH servers: diff --git a/tldr/bvnc b/tldr/bvnc index a5afa629..87c96d2c 100644 --- a/tldr/bvnc +++ b/tldr/bvnc @@ -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: . - Browse for VNC servers: diff --git a/tldr/byobu b/tldr/byobu index fa45d500..4ef44765 100644 --- a/tldr/byobu +++ b/tldr/byobu @@ -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: . - Start a new session: diff --git a/tldr/docker-image b/tldr/docker-image index 04bd3761..cba5f846 100644 --- a/tldr/docker-image +++ b/tldr/docker-image @@ -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: . - List local Docker images: diff --git a/tldr/dvc-freeze b/tldr/dvc-freeze index 7e6c1be5..9fcebeda 100644 --- a/tldr/dvc-freeze +++ b/tldr/dvc-freeze @@ -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: . - Freeze one or more specified stages: diff --git a/tldr/dvc-unfreeze b/tldr/dvc-unfreeze index 221b0bf8..2409d546 100644 --- a/tldr/dvc-unfreeze +++ b/tldr/dvc-unfreeze @@ -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: . - Unfreeze one or more specified stages: diff --git a/tldr/emacs b/tldr/emacs index fa13d6d2..b3b5381b 100644 --- a/tldr/emacs +++ b/tldr/emacs @@ -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: . - Start Emacs and open a file: diff --git a/tldr/emacsclient b/tldr/emacsclient index f8364b06..5ee08d89 100644 --- a/tldr/emacsclient +++ b/tldr/emacsclient @@ -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: . - Open a file in an existing Emacs server (using GUI if available): diff --git a/tldr/encfs b/tldr/encfs index 305549c5..df0c2651 100644 --- a/tldr/encfs +++ b/tldr/encfs @@ -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: . - Initialize or mount an encrypted filesystem: diff --git a/tldr/eqn b/tldr/eqn index ab8b3188..e0dd0bd1 100644 --- a/tldr/eqn +++ b/tldr/eqn @@ -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: . - Process input with equations, saving the output for future typesetting with groff to PostScript: diff --git a/tldr/fg b/tldr/fg index 39cb15dc..34d1ca70 100644 --- a/tldr/fg +++ b/tldr/fg @@ -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: . - Bring most recently suspended or running background job to foreground: diff --git a/tldr/flutter-pub b/tldr/flutter-pub index c4306569..58ee1e8a 100644 --- a/tldr/flutter-pub +++ b/tldr/flutter-pub @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # flutter pub > Flutter's package manager. -> Note: Packages are available on . See also: `flutter`. +> Note: Packages are available on . +> See also: `flutter`. > More information: . - Download/Update all packages specified in `pubspec.yaml`: diff --git a/tldr/gcloud-help b/tldr/gcloud-help index 82bad6bc..675efff4 100644 --- a/tldr/gcloud-help +++ b/tldr/gcloud-help @@ -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: . - Search the `gcloud` CLI reference documents for specific terms: diff --git a/tldr/gcloud-logging-logs-list b/tldr/gcloud-logging-logs-list index ebb1fe72..3eb9ab05 100644 --- a/tldr/gcloud-logging-logs-list +++ b/tldr/gcloud-logging-logs-list @@ -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: . - List all logs in the current project: diff --git a/tldr/gcloud-sql-export-sql b/tldr/gcloud-sql-export-sql index 12984c95..dadd9ebf 100644 --- a/tldr/gcloud-sql-export-sql +++ b/tldr/gcloud-sql-export-sql @@ -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: . - Export data from a specific Cloud SQL instance to a Google Cloud Storage bucket as an SQL dump file: diff --git a/tldr/git-am b/tldr/git-am index 9dd6a1e5..ca1239d2 100644 --- a/tldr/git-am +++ b/tldr/git-am @@ -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: . - Apply and commit changes following a local patch file: diff --git a/tldr/git-apply b/tldr/git-apply index bf57a97b..6a5fecee 100644 --- a/tldr/git-apply +++ b/tldr/git-apply @@ -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: . - Print messages about the patched files: diff --git a/tldr/git-cherry-pick b/tldr/git-cherry-pick index 287ddc7e..0384169b 100644 --- a/tldr/git-cherry-pick +++ b/tldr/git-cherry-pick @@ -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}}` diff --git a/tldr/git-format-patch b/tldr/git-format-patch index 1a6c41fc..68e095ed 100644 --- a/tldr/git-format-patch +++ b/tldr/git-format-patch @@ -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: . - Create an auto-named `.patch` file for all the unpushed commits: diff --git a/tldr/git-ignore b/tldr/git-ignore index 22a55227..d7905f3d 100644 --- a/tldr/git-ignore +++ b/tldr/git-ignore @@ -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: . - Show the content of all global and local `.gitignore` files: diff --git a/tldr/git-lock b/tldr/git-lock index 334172b9..43b046d6 100644 --- a/tldr/git-lock +++ b/tldr/git-lock @@ -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: . - Disable the ability to commit changes of a local file: diff --git a/tldr/git-restore b/tldr/git-restore index 0db61a9a..bb1d6b0e 100644 --- a/tldr/git-restore +++ b/tldr/git-restore @@ -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: . - Restore an unstaged file to the staged version: diff --git a/tldr/git-switch b/tldr/git-switch index 0400d481..8b6e7e44 100644 --- a/tldr/git-switch +++ b/tldr/git-switch @@ -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: . - Switch to an existing branch: diff --git a/tldr/git-unlock b/tldr/git-unlock index 9c15e13f..61557fae 100644 --- a/tldr/git-unlock +++ b/tldr/git-unlock @@ -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: . - Enable the ability to commit changes of a previously-locked local file: diff --git a/tldr/git-whatchanged b/tldr/git-whatchanged index 63b88c5c..c7fb177b 100644 --- a/tldr/git-whatchanged +++ b/tldr/git-whatchanged @@ -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: . - Display logs and changes for recent commits: diff --git a/tldr/grap b/tldr/grap index 2aa5e99a..0674bd76 100644 --- a/tldr/grap +++ b/tldr/grap @@ -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: . - Process a `grap` file and save the output file for future processing with `pic` and `groff`: diff --git a/tldr/hub-branch b/tldr/hub-branch index dd77805d..c6f19041 100644 --- a/tldr/hub-branch +++ b/tldr/hub-branch @@ -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: diff --git a/tldr/kube-fzf b/tldr/kube-fzf index 9bfbb2d0..4b2b9122 100644 --- a/tldr/kube-fzf +++ b/tldr/kube-fzf @@ -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: . - Get pod details (from current namespace): diff --git a/tldr/lambo b/tldr/lambo index 6663a711..a42a106c 100644 --- a/tldr/lambo +++ b/tldr/lambo @@ -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: . - Create a new Laravel application: diff --git a/tldr/linux/alien b/tldr/linux/alien index e39f885a..da6f685d 100644 --- a/tldr/linux/alien +++ b/tldr/linux/alien @@ -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: . - Convert a specific installation file to Debian format (`.deb` extension): diff --git a/tldr/linux/aurman b/tldr/linux/aurman index 82f388c5..42731f38 100644 --- a/tldr/linux/aurman +++ b/tldr/linux/aurman @@ -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: . - Synchronize and update all packages: diff --git a/tldr/linux/bspwm b/tldr/linux/bspwm index 09297d22..d9126c9f 100644 --- a/tldr/linux/bspwm +++ b/tldr/linux/bspwm @@ -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: . - Start `bspwm` (note that a pre-existing window manager must not be open when this command is run): diff --git a/tldr/linux/bsub b/tldr/linux/bsub new file mode 100644 index 00000000..497ba237 --- /dev/null +++ b/tldr/linux/bsub @@ -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: . + +- 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}}` diff --git a/tldr/linux/compsize b/tldr/linux/compsize index 80f60f0c..76f16729 100644 --- a/tldr/linux/compsize +++ b/tldr/linux/compsize @@ -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: . - Calculate the current compression ratio for a file or directory: diff --git a/tldr/linux/ddcutil b/tldr/linux/ddcutil index 19669275..028a8fbe 100644 --- a/tldr/linux/ddcutil +++ b/tldr/linux/ddcutil @@ -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: . - List all compatible displays: diff --git a/tldr/linux/dos2unix b/tldr/linux/dos2unix index f045fb07..60d6f23b 100644 --- a/tldr/linux/dos2unix +++ b/tldr/linux/dos2unix @@ -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: . - Change the line endings of a file: diff --git a/tldr/linux/extundelete b/tldr/linux/extundelete index d86b8b76..bb732e39 100644 --- a/tldr/linux/extundelete +++ b/tldr/linux/extundelete @@ -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: . - Restore all deleted files inside partition N on device X: diff --git a/tldr/linux/flock b/tldr/linux/flock index 15ad65c6..6a4db5ca 100644 --- a/tldr/linux/flock +++ b/tldr/linux/flock @@ -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: . -- 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/}}` diff --git a/tldr/linux/insmod b/tldr/linux/insmod index 91877c3b..e16f9bcd 100644 --- a/tldr/linux/insmod +++ b/tldr/linux/insmod @@ -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: . - Insert a kernel module into the Linux kernel: diff --git a/tldr/linux/iptables b/tldr/linux/iptables index 748870c7..043f33a5 100644 --- a/tldr/linux/iptables +++ b/tldr/linux/iptables @@ -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: . - View chains, rules, packet/byte counters and line numbers for the filter table: diff --git a/tldr/linux/iw-dev b/tldr/linux/iw-dev index d66133e9..aacc43ff 100644 --- a/tldr/linux/iw-dev +++ b/tldr/linux/iw-dev @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > For a list of channels, frequencies and reg information: . > More information: . -- 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` diff --git a/tldr/linux/kwrite b/tldr/linux/kwrite index 0118b29d..da1a2c64 100644 --- a/tldr/linux/kwrite +++ b/tldr/linux/kwrite @@ -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: . - Open a text file: diff --git a/tldr/linux/ldapdomaindump b/tldr/linux/ldapdomaindump index 067eaa75..bad73adf 100644 --- a/tldr/linux/ldapdomaindump +++ b/tldr/linux/ldapdomaindump @@ -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: . - Dump all information using the given LDAP account: diff --git a/tldr/linux/lsmod b/tldr/linux/lsmod index e126f4ea..22ed246b 100644 --- a/tldr/linux/lsmod +++ b/tldr/linux/lsmod @@ -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: . - List all currently loaded kernel modules: diff --git a/tldr/linux/mac2unix b/tldr/linux/mac2unix index 64152671..8c0caf85 100644 --- a/tldr/linux/mac2unix +++ b/tldr/linux/mac2unix @@ -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: . - Change the line endings of a file: diff --git a/tldr/linux/mesg b/tldr/linux/mesg index 80b545af..6e801dc0 100644 --- a/tldr/linux/mesg +++ b/tldr/linux/mesg @@ -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: . - Check terminal's openness to write messages: diff --git a/tldr/linux/modinfo b/tldr/linux/modinfo index 4e3298ed..373c5749 100644 --- a/tldr/linux/modinfo +++ b/tldr/linux/modinfo @@ -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: . - List all attributes of a kernel module: diff --git a/tldr/linux/modprobe b/tldr/linux/modprobe index 876f2653..e78c2fe1 100644 --- a/tldr/linux/modprobe +++ b/tldr/linux/modprobe @@ -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: . - Pretend to load a module into the kernel, but don't actually do it: diff --git a/tldr/linux/openrc b/tldr/linux/openrc index 7063a566..2ec9083c 100644 --- a/tldr/linux/openrc +++ b/tldr/linux/openrc @@ -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: . - Change to a specific runlevel: diff --git a/tldr/linux/pkgfile b/tldr/linux/pkgfile index b5bf4846..9e91b101 100644 --- a/tldr/linux/pkgfile +++ b/tldr/linux/pkgfile @@ -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: . - Synchronize the pkgfile database: diff --git a/tldr/linux/postfix b/tldr/linux/postfix index 1bceff91..05af4c9a 100644 --- a/tldr/linux/postfix +++ b/tldr/linux/postfix @@ -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: . - Check the configuration: diff --git a/tldr/linux/pw-dot b/tldr/linux/pw-dot index 158ce7d9..3124dfff 100644 --- a/tldr/linux/pw-dot +++ b/tldr/linux/pw-dot @@ -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: . - Generate a graph to `pw.dot` file: diff --git a/tldr/linux/quickemu b/tldr/linux/quickemu index feaf49f0..3908ca61 100644 --- a/tldr/linux/quickemu +++ b/tldr/linux/quickemu @@ -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: . - Create and run a virtual machine from a configuration file: diff --git a/tldr/linux/rc-service b/tldr/linux/rc-service index 87465729..738a02b8 100644 --- a/tldr/linux/rc-service +++ b/tldr/linux/rc-service @@ -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: . - Show a service's status: diff --git a/tldr/linux/rc-status b/tldr/linux/rc-status index f2c3ef25..0fae9262 100644 --- a/tldr/linux/rc-status +++ b/tldr/linux/rc-status @@ -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: . - Show a summary of services and their status: diff --git a/tldr/linux/rc-update b/tldr/linux/rc-update index 5dab7c89..165560e6 100644 --- a/tldr/linux/rc-update +++ b/tldr/linux/rc-update @@ -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: . - List enabled services and the runlevels they are added to: diff --git a/tldr/linux/rmmod b/tldr/linux/rmmod index 92842beb..58a479ac 100644 --- a/tldr/linux/rmmod +++ b/tldr/linux/rmmod @@ -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: . - Remove a module from the kernel: diff --git a/tldr/linux/sinfo b/tldr/linux/sinfo index 1cbf2e59..c432be66 100644 --- a/tldr/linux/sinfo +++ b/tldr/linux/sinfo @@ -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: . - Show a quick summary overview of the cluster: diff --git a/tldr/linux/stratis b/tldr/linux/stratis new file mode 100644 index 00000000..81920755 --- /dev/null +++ b/tldr/linux/stratis @@ -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: . + +- 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}}` diff --git a/tldr/linux/tlp b/tldr/linux/tlp index 19720853..6c0e0b6d 100644 --- a/tldr/linux/tlp +++ b/tldr/linux/tlp @@ -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: . - Apply settings (according to the actual power source): diff --git a/tldr/linux/tlp-stat b/tldr/linux/tlp-stat index 592c528a..1629202a 100644 --- a/tldr/linux/tlp-stat +++ b/tldr/linux/tlp-stat @@ -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: . - Generate status report with configuration and all active settings: diff --git a/tldr/linux/unix2dos b/tldr/linux/unix2dos index 8bb352f2..e510b636 100644 --- a/tldr/linux/unix2dos +++ b/tldr/linux/unix2dos @@ -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: . - Change the line endings of a file: diff --git a/tldr/linux/unix2mac b/tldr/linux/unix2mac index b24da1fa..a67e1b03 100644 --- a/tldr/linux/unix2mac +++ b/tldr/linux/unix2mac @@ -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: . - Change the line endings of a file: diff --git a/tldr/linux/uuid b/tldr/linux/uuid index 346b5150..ab265548 100644 --- a/tldr/linux/uuid +++ b/tldr/linux/uuid @@ -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: . - Generate a UUIDv1 (based on time and system's hardware address, if present): diff --git a/tldr/linux/uuidgen b/tldr/linux/uuidgen index 907d2b70..acb66a5b 100644 --- a/tldr/linux/uuidgen +++ b/tldr/linux/uuidgen @@ -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: . - Create a random UUIDv4: diff --git a/tldr/linux/vgscan b/tldr/linux/vgscan index 3d75eac1..4e425483 100644 --- a/tldr/linux/vgscan +++ b/tldr/linux/vgscan @@ -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: . - Scan for volume groups and print information about each group found: diff --git a/tldr/linux/write b/tldr/linux/write index b66facb7..83580a92 100644 --- a/tldr/linux/write +++ b/tldr/linux/write @@ -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 (`` 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: . - Send a message to a given user on a given terminal ID: diff --git a/tldr/local b/tldr/local index 05b48d72..38377f26 100644 --- a/tldr/local +++ b/tldr/local @@ -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: . - Declare a string variable with the specified value: diff --git a/tldr/lpr b/tldr/lpr index 8c562b0d..3a3f258c 100644 --- a/tldr/lpr +++ b/tldr/lpr @@ -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: . - Print a file to the default printer: diff --git a/tldr/mesg b/tldr/mesg index c7222bba..ff038c22 100644 --- a/tldr/mesg +++ b/tldr/mesg @@ -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: . - Check terminal's openness to write messages: diff --git a/tldr/minetest b/tldr/minetest index e2fee7a3..0eb70006 100644 --- a/tldr/minetest +++ b/tldr/minetest @@ -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: . - Start Minetest in client mode: diff --git a/tldr/minetestserver b/tldr/minetestserver index df00cddb..67e3743b 100644 --- a/tldr/minetestserver +++ b/tldr/minetestserver @@ -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: . - Start the server: diff --git a/tldr/mitmproxy b/tldr/mitmproxy index 6c01d144..60980498 100644 --- a/tldr/mitmproxy +++ b/tldr/mitmproxy @@ -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: . - Start `mitmproxy` with default settings (will listen on port `8080`): diff --git a/tldr/mosquitto_passwd b/tldr/mosquitto_passwd index 0f195999..c7f64254 100644 --- a/tldr/mosquitto_passwd +++ b/tldr/mosquitto_passwd @@ -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: . - Add a new user to a password file (will prompt to enter the password): diff --git a/tldr/mysqldump b/tldr/mysqldump index 6b609886..ee7f3233 100644 --- a/tldr/mysqldump +++ b/tldr/mysqldump @@ -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: . - Create a backup (user will be prompted for a password): diff --git a/tldr/netperf b/tldr/netperf index 7a44e7d4..e500609d 100644 --- a/tldr/netperf +++ b/tldr/netperf @@ -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: . - Connect to server on a specific IP address via default port (12865): diff --git a/tldr/netserver b/tldr/netserver index ea50fe22..ef0ed08b 100644 --- a/tldr/netserver +++ b/tldr/netserver @@ -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: . - Start a server on the default port (12865) and fork to background: diff --git a/tldr/odps-auth b/tldr/odps-auth index 1b0808ba..fcffed54 100644 --- a/tldr/odps-auth +++ b/tldr/odps-auth @@ -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: . - Add a user to the current project: diff --git a/tldr/odps-func b/tldr/odps-func index 7c996f92..f332da4f 100644 --- a/tldr/odps-func +++ b/tldr/odps-func @@ -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: . - Show functions in the current project: diff --git a/tldr/odps-inst b/tldr/odps-inst index 6f2e07fe..d2cd61a1 100644 --- a/tldr/odps-inst +++ b/tldr/odps-inst @@ -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: . - Show instances created by current user: diff --git a/tldr/odps-resource b/tldr/odps-resource index 57ec3767..0cb9fe27 100644 --- a/tldr/odps-resource +++ b/tldr/odps-resource @@ -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: . - Show resources in the current project: diff --git a/tldr/odps-table b/tldr/odps-table index 45d48e05..44937436 100644 --- a/tldr/odps-table +++ b/tldr/odps-table @@ -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: . - Create a table with partition and lifecycle: diff --git a/tldr/odps-tunnel b/tldr/odps-tunnel index 2feb0ab5..cec91f48 100644 --- a/tldr/odps-tunnel +++ b/tldr/odps-tunnel @@ -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: . - Download table to local file: diff --git a/tldr/osx/coreautha b/tldr/osx/coreautha index 2d5b0ffe..6d3d10c7 100644 --- a/tldr/osx/coreautha +++ b/tldr/osx/coreautha @@ -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: . - Start the agent: diff --git a/tldr/osx/coreauthd b/tldr/osx/coreauthd index 59027f06..ebd7af78 100644 --- a/tldr/osx/coreauthd +++ b/tldr/osx/coreauthd @@ -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: . - Start the agent: diff --git a/tldr/osx/dhcp6d b/tldr/osx/dhcp6d index f10c0416..c64f7a8e 100644 --- a/tldr/osx/dhcp6d +++ b/tldr/osx/dhcp6d @@ -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: . diff --git a/tldr/pic b/tldr/pic index 54df47cf..5cd7f05b 100644 --- a/tldr/pic +++ b/tldr/pic @@ -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: . - Process input with pictures, saving the output for future typesetting with groff to PostScript: diff --git a/tldr/podman-image b/tldr/podman-image index c3ca6d4d..338e316d 100644 --- a/tldr/podman-image +++ b/tldr/podman-image @@ -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: . - List local Docker images: diff --git a/tldr/pueue-stash b/tldr/pueue-stash index 3bcdbcef..4bc81e07 100644 --- a/tldr/pueue-stash +++ b/tldr/pueue-stash @@ -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: . - Stash an enqueued task: diff --git a/tldr/qownnotes b/tldr/qownnotes index bc447c20..8ebd2f0f 100644 --- a/tldr/qownnotes +++ b/tldr/qownnotes @@ -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: . - Run in portable mode: diff --git a/tldr/rbash b/tldr/rbash index ca7c8c31..f403c786 100644 --- a/tldr/rbash +++ b/tldr/rbash @@ -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: . - Start an interactive shell session: diff --git a/tldr/screen b/tldr/screen index c1a50a17..8377b30f 100644 --- a/tldr/screen +++ b/tldr/screen @@ -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: . - Start a new screen session: diff --git a/tldr/sh b/tldr/sh index 009148ad..ba750bb8 100644 --- a/tldr/sh +++ b/tldr/sh @@ -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: . - Start an interactive shell session: diff --git a/tldr/showfigfonts b/tldr/showfigfonts index 324a56de..5a0c5280 100644 --- a/tldr/showfigfonts +++ b/tldr/showfigfonts @@ -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: . - Display available fonts: diff --git a/tldr/ssh-agent b/tldr/ssh-agent index 82ab6252..3f85f7b2 100644 --- a/tldr/ssh-agent +++ b/tldr/ssh-agent @@ -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: . - Start an SSH Agent for the current shell: diff --git a/tldr/tbl b/tldr/tbl index 5dfea959..b948026f 100644 --- a/tldr/tbl +++ b/tldr/tbl @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tbl > Table preprocessor for the groff (GNU Troff) document formatting system. -> See also `groff` and `troff`. +> See also: `groff`, `troff`. > More information: . - Process input with tables, saving the output for future typesetting with groff to PostScript: diff --git a/tldr/troff b/tldr/troff index 90a5978c..d07087b9 100644 --- a/tldr/troff +++ b/tldr/troff @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # troff > Typesetting processor for the groff (GNU Troff) document formatting system. -> See also `groff`. +> See also: `groff`. > More information: . - Format output for a PostScript printer, saving the output to a file: diff --git a/tldr/trunk b/tldr/trunk new file mode 100644 index 00000000..5fe6a04f --- /dev/null +++ b/tldr/trunk @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# trunk + +> Bundle and serve Rust web apps with CI/CD pipelines. +> More information: . + +- Start local/production server with hot reloading: + +`trunk serve --port {{port}} --release --proxy-backend {{URL}}` + +- Build for production at root or subdirectory: + +`trunk build --release --dist {{path/to/distribution}} --public-url {{/path/to/app/subdir}}` + +- List all available tools in the repo and if they are enabled: + +`trunk tools list` + +- Enable/disable a tool at a specific version: + +`trunk tools {{enable|disable}} {{tool}}@{{version}}` + +- Print an action's execution history: + +`trunk actions history {{action}}` diff --git a/tldr/uname b/tldr/uname index ae4b90ed..7e337d07 100644 --- a/tldr/uname +++ b/tldr/uname @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # uname > Print details about the current machine and the operating system running on it. -> See also `lsb_release`. +> See also: `lsb_release`. > More information: . - Print kernel name: diff --git a/tldr/vegeta b/tldr/vegeta index 0e4068a1..a0c0617b 100644 --- a/tldr/vegeta +++ b/tldr/vegeta @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # vegeta > A utility and a library for HTTP load testing. -> See also `ab`. +> See also: `ab`. > More information: . - Launch an attack lasting 30 seconds: diff --git a/tldr/windows/mimikatz b/tldr/windows/mimikatz new file mode 100644 index 00000000..0a361ada --- /dev/null +++ b/tldr/windows/mimikatz @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz + +> Interact with Windows credentials, perform credential dumping, token manipulation, and more. +> Requires administrator privileges and typically runs on Windows. +> More information: . + +- Run mimikatz in interactive mode: + +`mimikatz` + +- Enable debug privileges (needed for most operations): + +`mimikatz "privilege::debug"` + +- List available logon sessions: + +`mimikatz "sekurlsa::logonpasswords"` + +- Dump plaintext passwords, NTLM hashes, and Kerberos tickets from memory: + +`mimikatz "sekurlsa::logonpasswords"` + +- Pass-the-Hash with a specific NTLM hash and launch a command: + +`mimikatz "sekurlsa::pth /user:{{username}} /domain:{{domain}} /ntlm:{{hash}} /run:{{cmd}}"` + +- Dump local SAM database hashes: + +`mimikatz "lsadump::sam"` + +- Extract Kerberos tickets and export to a file: + +`mimikatz "kerberos::list /export"` + +- Exit mimikatz: + +`exit` diff --git a/tldr/windows/mimikatz-crypto b/tldr/windows/mimikatz-crypto new file mode 100644 index 00000000..37b03509 --- /dev/null +++ b/tldr/windows/mimikatz-crypto @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz crypto + +> Manipulate Windows cryptographic services and certificates. +> More information: . + +- List cryptographic providers: + +`mimikatz "crypto::providers"` + +- List keys in a cryptographic provider: + +`mimikatz "crypto::capi"` + +- Export certificates and keys: + +`mimikatz "crypto::certificates /export"` diff --git a/tldr/windows/mimikatz-dpapi b/tldr/windows/mimikatz-dpapi new file mode 100644 index 00000000..986a381a --- /dev/null +++ b/tldr/windows/mimikatz-dpapi @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz dpapi + +> Interact with the Windows Data Protection API (DPAPI). +> More information: . + +- List master keys: + +`mimikatz "dpapi::masterkey /list"` + +- Decrypt a DPAPI blob: + +`mimikatz "dpapi::blob /in:blob_file.bin"` + +- Retrieve Chrome credentials using DPAPI: + +`mimikatz "dpapi::chrome /in:Login Data"` diff --git a/tldr/windows/mimikatz-event b/tldr/windows/mimikatz-event new file mode 100644 index 00000000..681ba04f --- /dev/null +++ b/tldr/windows/mimikatz-event @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz event + +> Manage Windows Event Log records. +> More information: . + +- Clear event logs: + +`mimikatz "event::clear"` + +- Display event log sources: + +`mimikatz "event::providers"` diff --git a/tldr/windows/mimikatz-kerberos b/tldr/windows/mimikatz-kerberos new file mode 100644 index 00000000..82a1583a --- /dev/null +++ b/tldr/windows/mimikatz-kerberos @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz kerberos + +> Interact with Kerberos tickets. +> More information: . + +- List current Kerberos tickets: + +`mimikatz "kerberos::list"` + +- Purge all Kerberos tickets: + +`mimikatz "kerberos::purge"` + +- Inject a ticket from a `.kirbi` file: + +`mimikatz "kerberos::ptt ticket.kirbi"` diff --git a/tldr/windows/mimikatz-lsadump b/tldr/windows/mimikatz-lsadump new file mode 100644 index 00000000..d4349c25 --- /dev/null +++ b/tldr/windows/mimikatz-lsadump @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz lsadump + +> Dump secrets from the Windows Local Security Authority (LSA). +> Requires SYSTEM privileges. +> More information: . + +- Dump SAM hashes: + +`mimikatz "lsadump::sam"` + +- Dump secrets from the SECURITY hive: + +`mimikatz "lsadump::secrets"` + +- Dump cached domain credentials: + +`mimikatz "lsadump::cache"` diff --git a/tldr/windows/mimikatz-misc b/tldr/windows/mimikatz-misc new file mode 100644 index 00000000..363c9b8a --- /dev/null +++ b/tldr/windows/mimikatz-misc @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz misc + +> Miscellaneous system and utility commands. +> More information: . + +- Trigger Blue Screen of Death (for testing): + +`mimikatz "misc::bsod"` + +- List loaded kernel drivers: + +`mimikatz "misc::minidump"` + +- Change system time: + +`mimikatz "misc::systemtime"` diff --git a/tldr/windows/mimikatz-net b/tldr/windows/mimikatz-net new file mode 100644 index 00000000..1cdc980a --- /dev/null +++ b/tldr/windows/mimikatz-net @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz net + +> Perform network and domain operations. +> More information: . + +- List domain users: + +`mimikatz "net::users"` + +- List domain computers: + +`mimikatz "net::computers"` + +- Retrieve domain controller information: + +`mimikatz "net::domaincontrollers"` diff --git a/tldr/windows/mimikatz-privilege b/tldr/windows/mimikatz-privilege new file mode 100644 index 00000000..c495c953 --- /dev/null +++ b/tldr/windows/mimikatz-privilege @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz privilege + +> Manage privileges for mimikatz operations. +> More information: . + +- Enable debug privilege (required for many modules): + +`mimikatz "privilege::debug"` + +- Check current privilege state: + +`mimikatz "privilege::whoami"` diff --git a/tldr/windows/mimikatz-process b/tldr/windows/mimikatz-process new file mode 100644 index 00000000..e76858f2 --- /dev/null +++ b/tldr/windows/mimikatz-process @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz process + +> Manage process privileges and tokens. +> More information: . + +- List processes with their tokens: + +`mimikatz "process::list"` + +- Elevate mimikatz to a SYSTEM process: + +`mimikatz "process::token /user:NT AUTHORITY\SYSTEM"` diff --git a/tldr/windows/mimikatz-sekurlsa b/tldr/windows/mimikatz-sekurlsa new file mode 100644 index 00000000..6f2712bf --- /dev/null +++ b/tldr/windows/mimikatz-sekurlsa @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz sekurlsa + +> Extract credentials and secrets from memory. +> Requires debug privileges. +> More information: . + +- Extract plaintext passwords: + +`mimikatz "sekurlsa::logonpasswords"` + +- List Kerberos tickets in memory: + +`mimikatz "sekurlsa::tickets"` + +- Dump LSA secrets: + +`mimikatz "sekurlsa::secrets"` diff --git a/tldr/windows/mimikatz-service b/tldr/windows/mimikatz-service new file mode 100644 index 00000000..b04470fa --- /dev/null +++ b/tldr/windows/mimikatz-service @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz service + +> Manage Windows services through mimikatz. +> More information: . + +- Start a service: + +`mimikatz "service::start service_name"` + +- Stop a service: + +`mimikatz "service::stop service_name"` + +- Delete a service: + +`mimikatz "service::delete service_name"` diff --git a/tldr/windows/mimikatz-standard b/tldr/windows/mimikatz-standard new file mode 100644 index 00000000..bbd0e318 --- /dev/null +++ b/tldr/windows/mimikatz-standard @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz standard + +> Basic commands and mimikatz environment management. +> More information: . + +- Display system information: + +`mimikatz "standard::info"` + +- Clear the mimikatz command history: + +`mimikatz "standard::clearev"` + +- Show command history: + +`mimikatz "standard::history"` diff --git a/tldr/windows/mimikatz-token b/tldr/windows/mimikatz-token new file mode 100644 index 00000000..6764f7b1 --- /dev/null +++ b/tldr/windows/mimikatz-token @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz token + +> List and manipulate security tokens. +> More information: . + +- List tokens: + +`mimikatz "token::list"` + +- Elevate privileges by impersonating a token: + +`mimikatz "token::elevate"` + +- Revert to original token: + +`mimikatz "token::revert"` diff --git a/tldr/windows/mimikatz-vault b/tldr/windows/mimikatz-vault new file mode 100644 index 00000000..c87c1a68 --- /dev/null +++ b/tldr/windows/mimikatz-vault @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# mimikatz vault + +> Extract credentials stored in the Windows Credential Vault. +> More information: . + +- List vault credentials: + +`mimikatz "vault::list"` + +- Dump all vault credentials: + +`mimikatz "vault::cred"` diff --git a/tldr/windows/pushd b/tldr/windows/pushd index 7dadac6d..ec4941b1 100644 --- a/tldr/windows/pushd +++ b/tldr/windows/pushd @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pushd > Place a directory on a stack so it can be accessed later. -> See also `popd` to switch back to original directory. +> See also: `popd` to switch back to original directory. > More information: . - Switch to directory and push it on the stack: diff --git a/tldr/windows/replace b/tldr/windows/replace index cb488493..9d072168 100644 --- a/tldr/windows/replace +++ b/tldr/windows/replace @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # replace > Replace files. -> See also: `robocopy`, `move`, `copy`, and `del`. +> See also: `robocopy`, `move`, `copy`, `del`. > More information: . - Replace the destination file with the one from the source directory: diff --git a/tldr/write b/tldr/write index 5a50b4fb..09aa1b4c 100644 --- a/tldr/write +++ b/tldr/write @@ -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 (`` 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: . - Send a message to a given user on a given terminal ID: diff --git a/tldr/x11docker b/tldr/x11docker index bdfec6e9..11b17a03 100644 --- a/tldr/x11docker +++ b/tldr/x11docker @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # x11docker > Securely run GUI applications and desktop UIs in Docker containers. -> See also `xephyr`. +> See also: `xephyr`. > More information: . - Launch VLC in a container: diff --git a/tldr/ybacklight b/tldr/ybacklight index e10b9e91..7b551acd 100644 --- a/tldr/ybacklight +++ b/tldr/ybacklight @@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # ybacklight -> Manage screen backlight brightness. See also `xbacklight`. +> Manage screen backlight brightness. +> See also: `xbacklight`. > More information: . - Print current brightness and maximal brightness, shortened and separated by a slash: diff --git a/tldr/zellij b/tldr/zellij index ea828ac5..4719f8e7 100644 --- a/tldr/zellij +++ b/tldr/zellij @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # zellij > Terminal multiplexer with batteries included. -> See also `tmux` and `screen`. +> See also: `tmux`, `screen`. > More information: . - Start a new named session: diff --git a/tldr/zmv b/tldr/zmv index a2a5a71f..82a747f0 100644 --- a/tldr/zmv +++ b/tldr/zmv @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # zmv > Move or rename files matching a specified extended glob pattern. -> See also `zcp` and `zln`. +> See also: `zcp`, `zln`. > More information: . - Move files using a `regex`-like pattern: