Obtain IP address of Linux

Two commands used to obtain ip address of linux machine:
#set 1
#displays all cuurentlly active network interfaces
/sbin/ifconfig
# IP address in the output of this command is you IP
/sbin/ifconfig eth0 | grep 'inet addr:'
#set 2
/sbin/ip addr list
/sbin/ip addr list eth0

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...