codeaprendiz.github.io

DevOps Essentials

View on GitHub

diff

diff

NAME

diff - compare files line by line

SYNOPSIS

diff [OPTION]… FILES

DESCRIPTION

Compare FILES line by line.

EXAMPLES

When you want to check the difference in two files in linux system

$ diff /etc/kubernetes/manifests/kube-apiserver.yaml /var/answers/kube-apiserver.yaml
22c22
<     - --etcd-cafile=/etc/kubernetes/pki/ca.crt
---
>     - --etcd-cafile=/etc/kubernetes/pki/etcd/ca.crt