Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-25 00:20:50 +00:00
parent 9b28211252
commit f4e4b40a39
35 changed files with 147 additions and 70 deletions

View File

@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
- Display information about a specific network interface:
`ip {{[a|address]}} {{[s|show]}} {{eth0}}`
`ip {{[a|address]}} {{[s|show]}} {{ethX}}`
- Add an IP address to a network interface:
`sudo ip {{[a|address]}} {{[a|add]}} {{ip_address}} dev {{eth0}}`
`sudo ip {{[a|address]}} {{[a|add]}} {{ip_address}} dev {{ethX}}`
- Remove an IP address from a network interface:
`sudo ip {{[a|address]}} {{[d|delete]}} {{ip_address}} dev {{eth0}}`
`sudo ip {{[a|address]}} {{[d|delete]}} {{ip_address}} dev {{ethX}}`
- Delete all IP addresses in a given scope from a network interface:
`sudo ip {{[a|address]}} {{[f|flush]}} {{eth0}} scope {{global|host|link}}`
`sudo ip {{[a|address]}} {{[f|flush]}} {{ethX}} scope {{global|host|link}}`