14-11-2023
This commit is contained in:
@@ -95,6 +95,25 @@ gd.jpeg_ignore_warning = 1 | session.cookie_samesite =
|
||||
|
||||
|
||||
|
||||
##### Comparer un fichier local et un fichier distant:
|
||||
|
||||
```bash
|
||||
$ ssh bruno@212.227.191.167 "cat upgrade_nextcloud.sh" | diff - /Users/bruno/Documents/Scripts/bash/upgrade_nextcloud.sh | colordiff
|
||||
35c35
|
||||
< php_version=7.4
|
||||
---
|
||||
> php_version=8.0
|
||||
|
||||
```
|
||||
|
||||
##### Comparer 2 fichiers distants sur 2 serveurs différents:
|
||||
|
||||
```bash
|
||||
$ diff <(ssh user@remote-host1 'cat /path/to/file1') <(ssh user@remote-host2 'cat /path/to/file2')
|
||||
```
|
||||
|
||||
|
||||
|
||||
Colordiff peut comparer 2 dossiers:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user