09 Jul How To Find your Server’s Public IP Address by kayals in Linux, System AdministrationComments ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' Related posts:Enable root login over SSHHow to output only file names (with spaces) in ls -Al?Upgrade PHP 7.2.x to 7.4.x in centOS Tags: grep,IP,pipe