Wednesday, March 15, 2017

how to find your ip address on your linux server

ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'

No comments: