summaryrefslogtreecommitdiffstats
path: root/cat
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-04-05 17:44:41 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-04-05 18:34:35 +0100
commit4de124debf181ff6af38617b80c2355627e38d35 (patch)
treead1eed6ffb0befe468e1db3456e5d4bd886f0298 /cat
parentafa17809599f3ebc82c3feef025ca812fb26c9fe (diff)
downloadlibguestfs-4de124debf181ff6af38617b80c2355627e38d35.tar.gz
libguestfs-4de124debf181ff6af38617b80c2355627e38d35.tar.xz
libguestfs-4de124debf181ff6af38617b80c2355627e38d35.zip
cat, edit: Reference guestfish equivalent commands in the manual pages.
Diffstat (limited to 'cat')
-rwxr-xr-xcat/virt-cat.pod28
1 files changed, 26 insertions, 2 deletions
diff --git a/cat/virt-cat.pod b/cat/virt-cat.pod
index 06c5eb6a..4ec9a0b4 100755
--- a/cat/virt-cat.pod
+++ b/cat/virt-cat.pod
@@ -27,7 +27,7 @@ directory (starting with '/').
C<virt-cat> can be used to quickly view a file. To edit a file, use
C<virt-edit>. For more complex cases you should look at the
-L<guestfish(1)> tool.
+L<guestfish(1)> tool (see L</USING GUESTFISH> below).
=head1 EXAMPLES
@@ -164,6 +164,30 @@ name as a guest.
For compatibility the old style is still supported.
+=head1 USING GUESTFISH
+
+L<guestfish(1)> is a more powerful, lower level tool which you can use
+when C<virt-cat> doesn't work.
+
+Using C<virt-cat> is approximately equivalent to doing:
+
+ guestfish --ro -i -d domname download file -
+
+where C<domname> is the name of the libvirt guest, and C<file> 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<disk.img> is the disk image, C</dev/sda1> is the filesystem
+within the disk image to edit, and C<file> is the full path to the
+file.
+
=head1 SHELL QUOTING
Libvirt guest names can contain arbitrary characters, some of which
@@ -186,7 +210,7 @@ Richard W.M. Jones L<http://people.redhat.com/~rjones/>
=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