X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=cat%2Fvirt-cat.pod;h=af8b8f484bc199051bf1ed77e5c6957fd2f647f9;hp=bb3af2b37d3f0adf2d7a9bb5992e4e3eeb0c88b2;hb=91ea9c1805112233140a463256c89072121fc182;hpb=94e1465129ae738367421c2515ee23623ee80ed9 diff --git a/cat/virt-cat.pod b/cat/virt-cat.pod index bb3af2b..af8b8f4 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> @@ -164,6 +165,30 @@ 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 to edit, and C is the full path to the +file. + =head1 SHELL QUOTING Libvirt guest names can contain arbitrary characters, some of which @@ -175,7 +200,9 @@ manual page L for details. L, L, +L, L, +L, L. =head1 AUTHOR @@ -184,7 +211,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