Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-11 00:16:59 +00:00
parent 08e6a26f5e
commit b0756d672e
16 changed files with 70 additions and 12 deletions

29
tldr/bind Normal file
View File

@@ -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: <https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins>.
- 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`

View File

@@ -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}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# chronyc
> Query the Chrony NTP daemon.
> More information: <https://chrony.tuxfamily.org/doc/4.0/chronyc.html>.
> More information: <https://chrony-project.org/doc/4.6.1/chronyc.html>.
- Start `chronyc` in interactive mode:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nm-online
> Ask NetworkManager whether the network is connected.
> More information: <https://networkmanager.dev/docs/api/latest/nm-online.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nm-online.html>.
- Find out whether the network is connected and print the result to `stdout`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nmcli
> Manage the network configuration using NetworkManager.
> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- View documentation for running `nmcli` as a NetworkManager secret/polkit agent:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Register `nmcli` as a secret agent and listen for secret requests:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- List all NetworkManager connections (shows name, UUID, type and device):

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Print the statuses of all network interfaces:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Show the general status of NetworkManager:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Start monitoring NetworkManager changes:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Show the networking status of NetworkManager:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Show status of Wi-Fi:

View File

@@ -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: <https://networkmanager.dev/docs/api/latest/nmtui.html>.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmtui.html>.
- Open the user interface:

25
tldr/linux/pvscan Normal file
View File

@@ -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: <https://manned.org/pvscan>.
- 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`

View File

@@ -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: <https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/Introduction.html>.

BIN
tldr/rev

Binary file not shown.