Questo contenuto non è disponibile nella lingua selezionata.

A.3.3. Differentiating between Latest Config Files


To view the differences between the config files on disk and the latest revisions in a channel, issue the command:
 rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file rhncfg-manager diff --channel=channel-label --dest-file=/path/to/file.txt \ /local/path/to/file
Copy to Clipboard Toggle word wrap
You should see output resembling:
/tmp/dest_path/example-config.txt /home/test/blah/hello_world.txt  
--- /tmp/dest_path/example-config.txt config_channel: example-channel revision: 1  
+++ /home/test/blah/hello_world.txt 2003-12-14 19:08:59.000000000  
-0500 @@ -1 +1 @@ -foo +hello, world
Copy to Clipboard Toggle word wrap
The following table lists the options available for rhncfg-manager diff:
Expand
Table A.5. rhncfg-manager diff options
Option Description
-cCHANNEL, --channel=CHANNEL Get file(s) from this config channel
-rREVISION, --revision=REVISION Use this revision
-dDEST_FILE, --dest-file=DEST_FILE Upload the file as this path
-tTOPDIR, --topdir=TOPDIR Make all files relative to this string
-h, --help Show help message and exit
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat