Thursday, April 4, 2019

Linux IP and Netstats Commands


Some common ways to display core network items can be obtained by running these commands:

ip link show  - lists the network interfaces
ip addr show  - lists addresses for interfaces
ip route show - lists routing table
netstat -tupl - lists the Internet services on a system
netstat -tup  - lists the active connections to and from a system

Unix System Shutdown Commands


The common ways to shut down a Unix system properly via the command line is as such:

halt - takes system down right away
init 0 - powers off the system using system scripts
init 6 - reboots the system completely
poweroff - shuts down system by powering it off
reboot - reboots system
shutdown -  shuts down system