본문 바로가기
Linux/Basic

Linux - diff 정리

by 플람 2020. 3. 4.

 

diff는 문서 2개가 있을때 문서1과 문서2의 차이점이 무엇인가에 대해서 비교해보는 명령어이다.

 

diff [옵션] 문서1 문서2 를 쓰면 된다.

 

현재 diff를 찾은 이유는 diff 옵션 중에 -Z의 뜻을 모르기 때문이다. 

 

찾아봤는데 -Z는 줄 끝의 공백을 무시한다는 것이다. 

 

나머지 옵션은 밑에있는 사이트를 참고하길바란다.

 

http://man7.org/linux/man-pages/man1/diff.1.html

 

diff(1) - Linux manual page

DIFF(1) User Commands DIFF(1) NAME         top diff - compare files line by line SYNOPSIS         top diff [OPTION]... FILES DESCRIPTION         top Compare FILES line by line. Mandatory arguments to long options are mandatory for short options too. --norm

man7.org

 

 

 

 

 

 

'Linux > Basic' 카테고리의 다른 글

Linux - ps aux | grep 프로세스이름  (0) 2020.03.04
Linux - mv 명령어 정리  (0) 2020.03.04
Linux - cp 명령어 정리  (0) 2020.03.04
Linux - ln -s 심볼릭 링크  (0) 2020.03.04
Linux - rm 명령어 정리  (0) 2020.03.04