Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/ipcalc Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# ipcalc
> Perform simple operations and calculations on IP addresses and networks.
> More information: <https://manned.org/ipcalc>.
- Show information about an address or network with a given subnet mask:
`ipcalc {{1.2.3.4}} {{255.255.255.0}}`
- Show information about an address or network in CIDR notation:
`ipcalc {{1.2.3.4}}/{{24}}`
- Show the broadcast address of an address or network:
`ipcalc -b {{1.2.3.4}}/{{30}}`
- Show the network address of provided IP address and netmask:
`ipcalc -n {{1.2.3.4}}/{{24}}`
- Display geographic information about a given IP address:
`ipcalc -g {{1.2.3.4}}`