1. 程式人生 > >Linux 本機/異機文件對比

Linux 本機/異機文件對比

-1 image span ges style gre es2017 nbsp 1.2

一:提取異步機器文件

#ssh 192.168.1.2 "cat /etc/glance/glance-api.conf | grep -v ‘#‘ |grep -v ^$"

  技術分享

二:提取異步機器文件並在本地生成

# ssh 192.168.1.2 "cat /etc/glance/glance-api.conf | grep -v ‘#‘ |grep -v ^$" >>1.conf

技術分享

三:本地對比兩個文件

# diff 1.conf 2.conf 

技術分享

Linux 本機/異機文件對比