Difference between revisions of "Diff"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 22: | Line 22: | ||
* <code>[[git diff]]</code> | * <code>[[git diff]]</code> | ||
* <code>[[git diff-tree]]</code> | * <code>[[git diff-tree]]</code> | ||
+ | * <code>[[kubectl diff]]</code> | ||
== See also == | == See also == |
Revision as of 22:43, 24 May 2022
diff
compare files line by line
Examples
diff -y file1 file2
diff -y --suppress-common-lines file1 file2
diff -y --suppress-common-lines -W 200 file1 file2
diff /path/to/DIRECTORY1/ /path/to/DIRECTORY2/
diff -r /path/to/DIRECTORY1/ /path/to/DIRECTORY2/
Related commands
See also
ack, ag, grep
,egrep, fgrep
,agrep
,ngrep
,pgrep
,awk
,sed
,strings
,tr
,tail
,mtail
,git grep
,wc
,uniq
,LogQL
,findstr (Windows)
,rg, git-grep, cut
diff
,icdiff, vimdiff
, meld,git diff
,git diff-tree, kubectl diff
- file, File system, directory,
touch
,mkdir
,ls
,ln
truncate
,fallocate
,split
,stat
, inode, File descriptor, superblock, block size (blockdev
),fuser
,lsof
,scrub
,chattr
, ulimit (nofiles),cp
,mv
,file (command)
,mkfifo
,chmod
Advertising: