mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 00:51:29 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user