X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfish.pod;h=26312fe4b68cf20693f137c0a6f90e3f7b645707;hb=5d6b6a3fbbfea19c606b984bac9cf64b6b81cafe;hp=56d941f822e310ce880a6c8847212b5dd468ff52;hpb=e1c62f6332ae07cb6f95130dcc9852701d085e2b;p=libguestfs.git diff --git a/guestfish.pod b/guestfish.pod index 56d941f..26312fe 100644 --- a/guestfish.pod +++ b/guestfish.pod @@ -156,6 +156,10 @@ able to hit the tab key to complete paths on the guest filesystem, but this causes extra "hidden" guestfs calls to be made, so this option is here to allow this feature to be disabled. +=item B<-V> | B<--version> + +Display the guestfish / libguestfs version number and exit. + =back =head1 COMMANDS ON COMMAND LINE @@ -278,6 +282,32 @@ will create a directory C on the host, and then export the contents of C on the mounted filesystem to C. (See C). +=head1 PIPES + +Use CspaceE | command> to pipe the output of the +first command (a guestfish command) to the second command (any host +command). For example: + + cat /etc/passwd | awk -F: '$3 == 0 { print }' + +(where C is the guestfish cat command, but C is the host awk +program). The above command would list all accounts in the guest +filesystem which have UID 0, ie. root accounts including backdoors. +Other examples: + + hexdump /bin/ls | head + list-devices | tail -1 + +The space before the pipe symbol is required, any space after the pipe +symbol is optional. Everything after the pipe symbol is just passed +straight to the host shell, so it can contain redirections, globs and +anything else that makes sense on the host side. + +To use a literal argument which begins with a pipe symbol, you have +to quote it, eg: + + echo "|" + =head1 EXIT ON ERROR BEHAVIOUR By default, guestfish will ignore any errors when in interactive mode