Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

display ip address linux

#private ip
hostname -I
or
ifconfig
or
ip addr show

#public ip
curl ifconfig.me
Comment

linux check ip address command

ifconfig -a
Comment

show ip address linux

$ hostname -I 
Comment

check ip address linux

ip addr
ip addr show eth0
ifconfig -a
ifconfig eth0
ip route
ip route show dev eth0
Comment

Grab IP address only (Linux)

# IP address
hostname -I | awk '{print $1}'
ip route get 1 | awk '{print $NF;exit}'
ifconfig | grep -m1 'inet' | awk '{print $2}'

# Public IP
curl ifconfig.me

# View RX & TX
ip -s -h a show eth0 | grep -A3 RX
Comment

check ip address linux

# The following commands allow you to get ip address in Linux. Open a terminal. Type any of the following command. Press Enter. The Ip address is next to inet.

ip address
ip address show eth0
ifconfig -a
ifconfig eth0
ip route
ip route show dev eth0
ip addr
ip addr show
ifconfig -a
ip route
Comment

show ip addr linux

# show IP address of current linux machine
ip addr show
Comment

PREVIOUS NEXT
Code Example
Shell :: install itertools 
Shell :: install deb file in manjaro 
Shell :: create a repo using github api 
Shell :: ubuntu install elasticsearch terminal 
Shell :: microsoft-todo-unofficial ubuntu 
Shell :: install redis-cli on ec2 
Shell :: vim wnd of file 
Shell :: terraform fmt 
Shell :: install nano in docker 
Shell :: nvm linux 
Shell :: linux bash clean up log file 
Shell :: find command 
Shell :: yarn add @materialui 
Shell :: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 
Shell :: how to print specific line from a file in bash 
Shell :: move files one level up linux 
Shell :: crontab only working days 
Shell :: check if s3 bucket exists 
Shell :: nginx file permission 
Shell :: install ubuntu deb 
Shell :: centos install copmposer 
Shell :: change window name command prompt 
Shell :: ssh vs gpg keys 
Shell :: install older version of laravel 
Shell :: git remove folder from repository 
Shell :: ubuntu chrome 
Shell :: how to still atom on ubuntu 
Shell :: bash how to remove the first n lines of a file 
Shell :: rot13 in bash 
Shell :: ssh use key file 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =