mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 03:50:03 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/cidr
Normal file
29
tldr/cidr
Normal 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}}`
|
||||
13
tldr/linux/grub2-mkpasswd-pbkdf2
Normal file
13
tldr/linux/grub2-mkpasswd-pbkdf2
Normal 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}}`
|
||||
2
tldr/ls
2
tldr/ls
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user