nl

[root@ecs-5611 ~]# cat /etc/hosts | nl
     1  ::1     localhost       localhost.localdomain   localhost6      localhost6.localdomain6
     2  127.0.0.1       localhost       localhost.localdomain   localhost4      localhost4.localdomain4
     3  127.0.0.1       ecs-5613        ecs-5613
       
     4  192.168.0.82 node-1
     5  192.168.0.228 node-2
     6  192.168.0.135 node-3
posted @ 2021-09-17 23:22  1769987233  阅读(53)  评论(0编辑  收藏  举报