summaryrefslogtreecommitdiffstats
path: root/guestfish-actions.pod
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-13 23:58:33 +0100
committerRichard Jones <rjones@redhat.com>2009-04-13 23:58:33 +0100
commitadefe14e308a0f8cf73f9c60693a3dbbded157b9 (patch)
treecc1ecd798dd05c422ddcf99c1cdbef307aacb8fd /guestfish-actions.pod
parent42283403886da648bb239177369aa65c0a659255 (diff)
downloadlibguestfs-adefe14e308a0f8cf73f9c60693a3dbbded157b9.tar.gz
libguestfs-adefe14e308a0f8cf73f9c60693a3dbbded157b9.tar.xz
libguestfs-adefe14e308a0f8cf73f9c60693a3dbbded157b9.zip
Generated files for file(1) command.
Diffstat (limited to 'guestfish-actions.pod')
-rw-r--r--guestfish-actions.pod12
1 files changed, 12 insertions, 0 deletions
diff --git a/guestfish-actions.pod b/guestfish-actions.pod
index 50ecfec6..606c5b93 100644
--- a/guestfish-actions.pod
+++ b/guestfish-actions.pod
@@ -236,6 +236,18 @@ This returns C<true> if and only if there is a file, directory
See also C<is_file>, C<is_dir>, C<stat>.
+=head2 file
+
+ file path
+
+This call uses the standard L<file(1)> command to determine
+the type or contents of the file. This also works on devices,
+for example to find out whether a partition contains a filesystem.
+
+The exact command which runs is C<file -bsL path>. Note in
+particular that the filename is not prepended to the output
+(the C<-b> option).
+
=head2 get-autosync
get-autosync