-** Network command ** -** Server command **
◆ netstat -anp
--Get port usage
$ netstat -anp
 Proto     Local Address         Foreign Address      State
  TCP        0.0.0.0:53             0.0.0.0:0        LISTENING
  TCP        0.0.0.0:80             0.0.0.0:0        LISTENING 
◆ ipconfig
--ipconfig:  Windows command environment
--ifconfig:  UNIX command environment
//Checking the network environment
$ ipconfig /all
$ ipconfig addr show
◆ hostname
--Check the server host name
$ hostname
$ uname -n
$ uname -a //Detail View
route
--Metric:  Route with a small metric value is registered in the routing table as the optimal destination route.
$ route print
Network Destination   Netmask    Gateway       Interface   Metric
    0.0.0.0          0.0.0.0   192.168.1.254  192.168.1.10   1
//IP address: 192.168.30.0 Gateway: 192.168.1.254 Subnet mask: 255.255.255.0
$ route add -net 192.168.30.0 gw 192.168.1.254 metric 1 netmask 255.255.255.0 eth0
◆ w
--Simple output of the current `` server status''
$ w
 16:40:10 up  1:26,  1 user,  load average: 0.00, 0.01, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
vagrant  pts/0    10.0.2.2         15:28    0.00s  0.17s  0.00s w
◆ vmstat
--Display various ``` resource usage` ``
$ vmstat 1 3   //3 process display in 1 second unit
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0  59188 140888 162272 1216520    3    3     6    88    6    7  2  1 94  3  0
 0  0  59188 140880 162272 1216548    0    0     0     0  186  366  1  0 99  0  0
 0  0  59188 140880 162272 1216548    0    0     0     0  168  362  1  1 99  0  0
◆ iostat
--Display CPU usage'' with option "-c"  --Display usage status of I/O device `` with option "-d"
$ iostat
Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda               0.46         2.63         9.55    2239142    8134170
vdb               0.00         0.00         0.00       1754          8
-Command collection often used as an infrastructure engineer -[Ionice] command-change disk I/O priority -12 commands for "what if" that occurs in IT infrastructure
Recommended Posts