CentOS7 base command is described hear.
TCP is protocol to send/receive data by using IP (internet Protocol) scheme.
If data deficit or error is detected, the data will be sent again in TCP.UDP (User Datagram Protocol)
UDP does not check error or send data again.
Therefore UDP can send data faster than TCP.
How to Check IP address
1. ip a [address] [Interface]
IP address and subnet mask set to Network interface is displayed.
2. nmcli [Interface]
Interface for network setting by command line. Without any options, current network setting is displayed.
DNS setting file
In this file, designate what function is used for name resolving.
If you set “files” as primary, /etc/hosts file is used for name resolving.
If you set “dns” as primary, DNS server described in /etc/resolv.conf file is used for name resolving.
IP address of DNS server is described in /etc/resolv.conf file.
1. ss command
Provided service name is displayed by ss command as below.
e.g.) Display list of TCP service.