Cheatsheet: Difference between revisions

Line 1,239:
ip route get 8.8.8.8 | head -1 | awk '{print $7}'
ip route get 8.8.8.8 | head -1 | cut -d' ' -f7
 
==== Route ====
 
netstat -nr (n => Numerical not hostname)
ip route
route
route -n
 
U route is up
H target is a host
G use gateway
R reinstate route for dynamic routing
D dynamically installed by daemon or redirect
M modified from routing daemon or redirect
A installed by addrconf
C cache entry
! reject route
 
==== DNS Config Info ====