CentOS 7 / RHEL 7 ifconfig netstat 以及其他命令對照

CentOS 7 / RHEL 7 ifconfig netstat 以及其他命令對照

CentOS 沉寂一段時間,在快要忘記它的存在時突然在去年推出CentOS 7,不過一直到現在才有機會安裝測試,詳細的更新資訊請自行前往,不過,

CentOS 7 / RHEL 7 ifconfig netstat 以及其他命令對照 圖1

安裝完後才發現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

關於作者

已發表 274 篇文章

留言

還沒有留言。有補充、疑問或不同做法,歡迎第一個留言。

發表留言

Email 不會公開,只用於回覆通知。

第一次留言需經審核,之後會直接顯示。