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:Mount NFS on Linux (TrueNAS)Install Terraform on Ubuntu 20.xHow To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04 Tags: grep,IP,pipe