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

1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;cmp
;cmp

2013년 11월 23일 (토) 14:40 판

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 }}