Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-24 00:19:28 +00:00
parent cd59a77dc8
commit 88bfcc64fb
11 changed files with 161 additions and 46 deletions

View File

@@ -5,37 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# ip route show
> Display subcommand for IP Routing table management.
> More information: <https://manned.org/ip-route>.
> This command is an alias of `ip route list`.
- Display the `main` routing table:
- View documentation for the original command:
`ip {{[r|route]}} {{[s|show]}}`
- Display the main routing table (same as first example):
`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{main|254}}`
- Display the local routing table:
`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{local|255}}`
- Display all routing tables:
`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{all|unspec|0}}`
- List routes from a given device only:
`ip {{[r|route]}} {{[s|show]}} dev {{eth0}}`
- List routes within a given scope:
`ip {{[r|route]}} {{[s|show]}} {{[s|scope]}} link`
- Display the routing cache:
`ip {{[r|route]}} {{[s|show]}} {{[c|cache]}}`
- Display only IPv6 or IPv4 routes:
`ip {{-6|-4}} {{[r|route]}} {{[s|show]}}`
`tldr ip route list`