Differences
This shows you the differences between two versions of the page.
— | ifdata [2015/08/04 18:12] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ifdata ====== | ||
+ | * [[moreutils]] | ||
+ | |||
+ | '' | ||
+ | |||
+ | Display IPv4 address, fex, '' | ||
+ | |||
+ | < | ||
+ | ifdata -pa eth0 | ||
+ | </ | ||
+ | |||
+ | Print yes or no if the interface exists. | ||
+ | |||
+ | < | ||
+ | ifdata -pe eth0 | ||
+ | </ | ||
+ | |||
+ | Return an exit code if device exists or not: | ||
+ | |||
+ | < | ||
+ | ifdata -e eth0 | ||
+ | </ | ||
+ | |||
+ | Print netmask: | ||
+ | |||
+ | < | ||
+ | ifdata -pn eth0 | ||
+ | </ | ||
+ | |||
+ | Print the broadcast address: | ||
+ | |||
+ | < | ||
+ | ifdata -pb eth0 | ||
+ | </ |