mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 23:56:00 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List network interfaces and their associated IP addresses:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- Filter to show only active network interfaces:
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- Display information about a specific network interface:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- Add an IP address to a network interface:
|
||||
|
||||
`ip address add {{ip_address}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Remove an IP address from a network interface:
|
||||
|
||||
`ip address delete {{ip_address}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Delete all IP addresses in a given scope from a network interface:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
||||
Reference in New Issue
Block a user