diff 如何禁止对符号链接进行打补丁
时间: 2023-07-20 21:03:49 浏览: 37
如果你使用的是GNU diff,可以通过设置--no-dereference选项来禁止对符号链接进行打补丁。这样,diff将不会跟踪符号链接指向的文件,而是将它们视为普通文件处理。示例命令如下:
```
diff --no-dereference original_file symlinked_file
```
如果你使用的是其他diff工具,请查阅其文档或手册以获取相应的选项。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)