A.3.3. 最新の設定ファイルの区別
ディスク上の設定ファイルとチャネル内の最新リビジョンの違いを表示するには、次のコマンドを発行します。
rhncfg-manager diff --channel=channel-label
--dest-file=/path/to/file.txt
\ /local/path/to/file
次のような出力が表示されます。
/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
以下の表は、rhncfg-manager diff で利用可能なオプションをリストしています:
表A.5 rhncfg-manager diff オプション
オプション | 説明 |
---|---|
-cCHANNEL, --channel=CHANNEL-cCHANNEL, --channel=CHANNEL | この設定チャネルからファイルを取得します |
-rREVISION, --revision=REVISION | このリビジョンを使用 |
-dDEST_FILE, --dest-file=DEST_FILE | このパスとしてファイルをアップロードします |
-tTOPDIR, --topdir=TOPDIR | すべてのファイルをこの文字列に相対的にする |
-h, --help | ヘルプメッセージを表示して終了します。 |