Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-17 00:18:55 +00:00
parent 02b81d951e
commit 16c437db8b
3 changed files with 43 additions and 1 deletions

29
tldr/cidr Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cidr
> Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.
> More information: <https://github.com/bschaatsbergen/cidr>.
- Explain a CIDR range:
`cidr explain {{10.0.0.0/16}}`
- Check whether an address belongs to a CIDR range:
`cidr contains {{10.0.0.0/16}} {{10.0.14.5}}`
- Get a count of all addresses in a CIDR range:
`cidr count {{10.0.0.0/16}}`
- Check whether two CIDR ranges overlap:
`cidr overlaps {{10.0.0.0/16}} {{10.0.14.0/22}}`
- Divide a CIDR range into a specific number of networks:
`cidr divide {{10.0.0.0/16}} {{9}}`

View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# grub2-mkpasswd-pbkdf2
> Generate a hashed password for GRUB.
> More information: <https://manned.org/grub2-mkpasswd-pbkdf2>.
- Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`:
`sudo grub2-mkpasswd-pbkdf2 {{-c|--iteration-count}} {{number_of_pbkdf2_iterations}} {{-s|--salt}} {{salt_length}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ls
> List directory contents.
> More information: <https://www.gnu.org/software/coreutils/ls>.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/ls-invocation.html>.
- List files one per line: