From ff81eb885bc65a745154529d31c002f42d486748 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 2 Aug 2025 00:21:20 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/fdisk | 12 ++++++------ tldr/linux/grub-mkconfig | 2 +- tldr/linux/nordvpn | 8 ++++---- tldr/linux/updatectl | 41 ++++++++++++++++++++++++++++++++++++++++ tldr/mysql | 2 +- tldr/pdftocairo | 2 +- 6 files changed, 54 insertions(+), 13 deletions(-) create mode 100644 tldr/linux/updatectl diff --git a/tldr/linux/fdisk b/tldr/linux/fdisk index 7d687ce4..49df6598 100644 --- a/tldr/linux/fdisk +++ b/tldr/linux/fdisk @@ -17,26 +17,26 @@ source: https://github.com/tldr-pages/tldr.git `sudo fdisk {{/dev/sdX}}` -- Once partitioning a disk, create a partition: +- Create a [n]ew partition: `` -- Once partitioning a disk, select a partition to delete: +- Select a partition to [d]elete: `` -- Once partitioning a disk, view the partition table: +- View the [p]artition table: `

` -- Once partitioning a disk, write the changes made: +- [w]rite the changes made: `` -- Once partitioning a disk, discard the changes made: +- Discard the changes made and [q]uit: `` -- Once partitioning a disk, open a help menu: +- Open a help [m]enu: `` diff --git a/tldr/linux/grub-mkconfig b/tldr/linux/grub-mkconfig index 3fbca912..b82fc11c 100644 --- a/tldr/linux/grub-mkconfig +++ b/tldr/linux/grub-mkconfig @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`grub-mkconfig --help` +`grub-mkconfig {{[-h|--help]}}` diff --git a/tldr/linux/nordvpn b/tldr/linux/nordvpn index 6eba8c9b..4193e220 100644 --- a/tldr/linux/nordvpn +++ b/tldr/linux/nordvpn @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Connect to the nearest NordVPN server: -`nordvpn connect` +`nordvpn {{[c|connect]}}` - List all available countries: @@ -26,12 +26,12 @@ source: https://github.com/tldr-pages/tldr.git - Connect to a NordVPN server in a specific country: -`nordvpn connect {{Germany}}` +`nordvpn {{[c|connect]}} {{Germany}}` - Connect to a NordVPN server in a specific country and city: -`nordvpn connect {{Germany}} {{Berlin}}` +`nordvpn {{[c|connect]}} {{Germany}} {{Berlin}}` - Set autoconnect option: -`nordvpn set autoconnect on` +`nordvpn {{[s|set]}} autoconnect on` diff --git a/tldr/linux/updatectl b/tldr/linux/updatectl new file mode 100644 index 00000000..09f382da --- /dev/null +++ b/tldr/linux/updatectl @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# updatectl + +> System update utility. +> More information: . + +- Apply an update: + +`updatectl update {{target}}` + +- Apply update and then reboot system: + +`updatectl --reboot update {{target}}` + +- Show data about the target and its versions: + +`updatectl list {{target}}` + +- Return local data about a target without fetching from the network: + +`updatectl --offline list {{target}}` + +- Suppress data headers for returned information: + +`updatectl --no-legend list {{target}}` + +- Check to see if a target has any available updates: + +`updatectl check {{target}}` + +- Clean up old versions of a specified target: + +`updatectl vacuum {{target}}` + +- Display help: + +`updatectl {{[-h|--help]}}` diff --git a/tldr/mysql b/tldr/mysql index 5715151f..f2a39721 100644 --- a/tldr/mysql +++ b/tldr/mysql @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mysql > The MySQL tool. -> More information: . +> More information: . - Connect to a database: diff --git a/tldr/pdftocairo b/tldr/pdftocairo index e2ea9eb9..6fb3a836 100644 --- a/tldr/pdftocairo +++ b/tldr/pdftocairo @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pdftocairo > Convert PDF files to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo. -> More information: . +> More information: . - Convert a PDF file to JPEG: