diff命令用于逐行对比文件内容的差异。若指定目录,将比较目录内同名文件的内容,但不会递归比较子目录中的文件。 1、 在Ubuntu系统中打开终端,输入diff --help可查看该命令的详细说明。diff命令参数丰富,能用于对比多个文件,快速定位内容差异与修改之处。
Every now and then I come across a feature of some Linux command that works so well that I have trouble understanding how I managed without it for so long. The one that I most recently discovered is ...