Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-08 00:14:59 +00:00
parent a812b3c467
commit f8bee5305f
111 changed files with 540 additions and 310 deletions

View File

@@ -11,32 +11,32 @@ source: https://github.com/tldr-pages/tldr.git
- List interfaces with detailed info:
`ip address`
`ip {{[a|address]}}`
- List interfaces with brief network layer info:
`ip -brief address`
`ip {{[-br a|-brief address]}}`
- List interfaces with brief link layer info:
`ip -brief link`
`ip {{[-br l|-brief link]}}`
- Display the routing table:
`ip route`
`ip {{[r|route]}}`
- Show neighbors (ARP table):
`ip neighbour`
`ip {{[n|neighbour]}}`
- Make an interface up/down:
`ip link set {{interface}} {{up|down}}`
`ip {{[l|link]}} set {{interface}} {{up|down}}`
- Add/Delete an IP address to an interface:
`ip addr add/del {{ip}}/{{mask}} dev {{interface}}`
`ip {{[a|address]}} add/del {{ip}}/{{mask}} dev {{interface}}`
- Add a default route:
`ip route add default via {{ip}} dev {{interface}}`
`ip {{[r|route]}} add default via {{ip}} dev {{interface}}`