X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cat%2Fvirt-cat.pod;h=c5d5c6e311ff383edbd845677e93e70dea8be816;hb=99624d29226ece1abbbdd921183b360f5f80de91;hp=395b10b065001135b384bcb8a212c1f1a0672d41;hpb=cb8403c4282ddfbcc204920c72a104eb7f69e373;p=libguestfs.git diff --git a/cat/virt-cat.pod b/cat/virt-cat.pod index 395b10b..c5d5c6e 100755 --- a/cat/virt-cat.pod +++ b/cat/virt-cat.pod @@ -27,7 +27,7 @@ directory (starting with '/'). C can be used to quickly view a file. To edit a file, use C. For more complex cases you should look at the -L tool. +L tool (see L below). =head1 EXAMPLES @@ -92,7 +92,8 @@ not used at all. =item B<--domain> guest -Add all the disks from the named libvirt guest. +Add all the disks from the named libvirt guest. Domain UUIDs can be +used instead of names. =item B<--echo-keys> @@ -123,8 +124,7 @@ auto-detection for C. If you have untrusted raw-format guest disk images, you should use this option to specify the disk format. This avoids a possible -security problem with malicious guests (CVE-2010-3851). See also -L. +security problem with malicious guests (CVE-2010-3851). =item B<--keys-from-stdin> @@ -165,6 +165,29 @@ name as a guest. For compatibility the old style is still supported. +=head1 USING GUESTFISH + +L is a more powerful, lower level tool which you can use +when C doesn't work. + +Using C is approximately equivalent to doing: + + guestfish --ro -i -d domname download file - + +where C is the name of the libvirt guest, and C is the +full path to the file. Note the final C<-> (meaning "output to +stdout"). + +The command above uses libguestfs's guest inspection feature and so +does not work on guests that libguestfs cannot inspect, or on things +like arbitrary disk images that don't contain guests. To display a +file from a disk image directly, use: + + guestfish --ro -a disk.img -m /dev/sda1 download file - + +where C is the disk image, C is the filesystem +within the disk image, and C is the full path to the file. + =head1 SHELL QUOTING Libvirt guest names can contain arbitrary characters, some of which @@ -172,11 +195,18 @@ have meaning to the shell such as C<#> and space. You may need to quote or escape these characters on the command line. See the shell manual page L for details. +=head1 EXIT STATUS + +This program returns 0 if successful, or non-zero if there was an +error. + =head1 SEE ALSO L, L, +L, L, +L, L. =head1 AUTHOR @@ -185,7 +215,7 @@ Richard W.M. Jones L =head1 COPYRIGHT -Copyright (C) 2010 Red Hat Inc. +Copyright (C) 2010-2011 Red Hat Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by