From b0756d672ef4f9bc65c015c964dc6ef6867a4b2b Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 11 Oct 2024 00:16:59 +0000 Subject: [PATCH] Update cheatsheets --- tldr/bind | 29 +++++++++++++++++++++++++++++ tldr/greater-than | 4 ++++ tldr/linux/chronyc | 2 +- tldr/linux/nm-online | 2 +- tldr/linux/nmcli | 2 +- tldr/linux/nmcli-agent | 2 +- tldr/linux/nmcli-connection | 2 +- tldr/linux/nmcli-device | 2 +- tldr/linux/nmcli-general | 2 +- tldr/linux/nmcli-monitor | 2 +- tldr/linux/nmcli-networking | 2 +- tldr/linux/nmcli-radio | 2 +- tldr/linux/nmtui | 2 +- tldr/linux/pvscan | 25 +++++++++++++++++++++++++ tldr/osx/launchd | 2 +- tldr/rev | Bin 303 -> 492 bytes 16 files changed, 70 insertions(+), 12 deletions(-) create mode 100644 tldr/bind create mode 100644 tldr/linux/pvscan diff --git a/tldr/bind b/tldr/bind new file mode 100644 index 00000000..3095bd49 --- /dev/null +++ b/tldr/bind @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bind + +> Bash builtin to manage bash hotkeys and variables. +> More information: . + +- List all bound commands and their hotkeys: + +`bind {{-p|-P}}` + +- Query a command for its hotkey: + +`bind -q {{command}}` + +- Bind a key: + +`bind -x '"{{key_sequence}}":{{command}}'` + +- List user defined bindings: + +`bind -X` + +- Display help: + +`help bind` diff --git a/tldr/greater-than b/tldr/greater-than index 585e70c8..476b6b05 100644 --- a/tldr/greater-than +++ b/tldr/greater-than @@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Redirect both `stdout` and `stderr` to `/dev/null` to keep the terminal output clean: `{{command}} &> /dev/null` + +- Clear the file contents or create a new empty file: + +`> {{path/to/file}}` diff --git a/tldr/linux/chronyc b/tldr/linux/chronyc index 8d330dcf..607d2596 100644 --- a/tldr/linux/chronyc +++ b/tldr/linux/chronyc @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chronyc > Query the Chrony NTP daemon. -> More information: . +> More information: . - Start `chronyc` in interactive mode: diff --git a/tldr/linux/nm-online b/tldr/linux/nm-online index abbccac1..746a82c1 100644 --- a/tldr/linux/nm-online +++ b/tldr/linux/nm-online @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nm-online > Ask NetworkManager whether the network is connected. -> More information: . +> More information: . - Find out whether the network is connected and print the result to `stdout`: diff --git a/tldr/linux/nmcli b/tldr/linux/nmcli index 56e0a6da..c3e6bbca 100644 --- a/tldr/linux/nmcli +++ b/tldr/linux/nmcli @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nmcli > Manage the network configuration using NetworkManager. -> More information: . +> More information: . - View documentation for running `nmcli` as a NetworkManager secret/polkit agent: diff --git a/tldr/linux/nmcli-agent b/tldr/linux/nmcli-agent index 42023c4c..2211c405 100644 --- a/tldr/linux/nmcli-agent +++ b/tldr/linux/nmcli-agent @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Run `nmcli` as a NetworkManager secret agent or polkit agent. > This subcommand can also be called with `nmcli a`. -> More information: . +> More information: . - Register `nmcli` as a secret agent and listen for secret requests: diff --git a/tldr/linux/nmcli-connection b/tldr/linux/nmcli-connection index f272a859..762c4d22 100644 --- a/tldr/linux/nmcli-connection +++ b/tldr/linux/nmcli-connection @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage connections with NetworkManager. > This subcommand can also be called with `nmcli c`. -> More information: . +> More information: . - List all NetworkManager connections (shows name, UUID, type and device): diff --git a/tldr/linux/nmcli-device b/tldr/linux/nmcli-device index 9a6dd211..7d9380ce 100644 --- a/tldr/linux/nmcli-device +++ b/tldr/linux/nmcli-device @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage network interfaces and establish new Wi-Fi connections using NetworkManager. > This subcommand can also be called with `nmcli d`. -> More information: . +> More information: . - Print the statuses of all network interfaces: diff --git a/tldr/linux/nmcli-general b/tldr/linux/nmcli-general index e7254649..f95b215f 100644 --- a/tldr/linux/nmcli-general +++ b/tldr/linux/nmcli-general @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage general settings of NetworkManager. > This subcommand can also be called with `nmcli g`. -> More information: . +> More information: . - Show the general status of NetworkManager: diff --git a/tldr/linux/nmcli-monitor b/tldr/linux/nmcli-monitor index 97645ead..8d144fbc 100644 --- a/tldr/linux/nmcli-monitor +++ b/tldr/linux/nmcli-monitor @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Monitor changes to the NetworkManager connection status. > This subcommand can also be called with `nmcli m`. -> More information: . +> More information: . - Start monitoring NetworkManager changes: diff --git a/tldr/linux/nmcli-networking b/tldr/linux/nmcli-networking index 2d05a347..52beae36 100644 --- a/tldr/linux/nmcli-networking +++ b/tldr/linux/nmcli-networking @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage the networking status of NetworkManager. > This subcommand can also be called with `nmcli n`. -> More information: . +> More information: . - Show the networking status of NetworkManager: diff --git a/tldr/linux/nmcli-radio b/tldr/linux/nmcli-radio index 784d7fea..e6a1db9c 100644 --- a/tldr/linux/nmcli-radio +++ b/tldr/linux/nmcli-radio @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Show the status of radio switches or enable/disable them using NetworkManager. > This subcommand can also be called with `nmcli r`. -> More information: . +> More information: . - Show status of Wi-Fi: diff --git a/tldr/linux/nmtui b/tldr/linux/nmtui index 002202de..f2724509 100644 --- a/tldr/linux/nmtui +++ b/tldr/linux/nmtui @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Text user interface for controlling NetworkManager. > Use arrow keys to navigate, enter to select an option. -> More information: . +> More information: . - Open the user interface: diff --git a/tldr/linux/pvscan b/tldr/linux/pvscan new file mode 100644 index 00000000..a53731ef --- /dev/null +++ b/tldr/linux/pvscan @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pvscan + +> List all physical volumes and manage their online status. +> More information: . + +- List all physical volumes: + +`pvscan` + +- Show the volume group that uses a specific physical volume: + +`pvscan --cache --listvg {{/dev/sdX}}` + +- Show logical volumes that use a specific physical volume: + +`pvscan --cache --listlvs {{/dev/sdX}}` + +- Display detailed information in JSON format: + +`pvscan --reportformat json` diff --git a/tldr/osx/launchd b/tldr/osx/launchd index 0a7b820c..72296046 100644 --- a/tldr/osx/launchd +++ b/tldr/osx/launchd @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # launchd -> This manages processes, both for the system and users. +> Manages processes, both for the system and users. > You cannot invoke launchd manually, use launchctl to interact with it. > More information: . diff --git a/tldr/rev b/tldr/rev index 2f56c0fa93099f0252a39b5857b9b1ef2eb99d39..74740466a05386b0c067d7d963d0b3d04b8a4e1b 100644 GIT binary patch delta 192 zcmY+8K?=e!6huWgl1n(d>Y~)Oxa<{loq%5&h)GC3#o87(9>AW%g%|S>rXU5^Gw;p3 z=by#16L0|vXKiTc_A9zFxbbv?w(P(ZF4`)y6G8^6