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

19번째 줄: 19번째 줄:
1.txt 2.txt differ: byte 1, line 1
1.txt 2.txt differ: byte 1, line 1
</source>
</source>
==같이 보기==
*[[diff]]


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

2013년 11월 23일 (토) 14: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 }}