CentOS 7 / RHEL 7 ifconfig netstat 以及其他命令對照
CentOS 沉寂一段時間,在快要忘記它的存在時突然在去年推出CentOS 7,不過一直到現在才有機會安裝測試,詳細的更新資訊請自行前往,不過,
安裝完後才發現CentOS/RHEL 7對於系統命令有些許的變化,不管如何還是要適應這個帶來的變化,目前查詢到的對照表如下:
Before | CentOS 7 |
---|---|
ifconfig | ip a(addr), ip l(link) |
route | ip r(route) |
ip r(route) | ss |
netstat -i | ip -s l(link) |
arp | ip n(neighbor) |
traceroute/traceroute6 | tracepath |
ifconfig eth1 up(down) | ip l set eth1 up(down) |
service start(stop/restart) | systemctl start(stop/reload) |
chkconfig on(off) servicename | systemctl enable(disable) servicename |
chkconfig –list | systemctl list-unit-files –type=service |
chkconfig servicename | systemctl is-enabled servicename |