"리눅스 cmp"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 Cmp 문서를 리눅스 cmp 문서로 옮겼습니다)
22번째 줄: 22번째 줄:


==같이 보기==
==같이 보기==
*[[diff]]
*[[리눅스 diff]]


[[분류: /usr/bin]]
[[분류: /usr/bin]]

2014년 10월 9일 (목) 23:39 판

1 개요

cmp
/usr/bin/cmp
  • 파일 비교 리눅스 명령어
  • 한 행씩 비교하여 다른 점이 있으면 다르다는 메시지와 함께 종료
  • 다른 점이 없으면 아무 메시지 없음
[root@jmnote ~]# cat 1.txt
hello
world
[root@jmnote ~]# cat 2.txt
Hello
World!
[root@jmnote ~]# cmp 1.txt 1.txt
[root@jmnote ~]# cmp 1.txt 2.txt
1.txt 2.txt differ: byte 1, line 1

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}