mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/bind
Normal file
29
tldr/bind
Normal 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`
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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`:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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
25
tldr/linux/pvscan
Normal 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`
|
||||
@@ -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>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user