X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=39df5045a505f9009a18351310d6219bdb64bd61;hp=4c1ef7215a77cba86d2b1b65e4da82958b52dd44;hb=e492608f2f3809a824cb70ee03ff305964b69dd7;hpb=f450ce75b754fb869b34433c0126f7bb592b141b diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index 4c1ef72..39df504 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -640,3 +640,24 @@ val wc_w : t -> string -> int val wc_c : t -> string -> int (** count characters in a file *) +val head : t -> string -> string array +(** return first 10 lines of a file *) + +val head_n : t -> int -> string -> string array +(** return first N lines of a file *) + +val tail : t -> string -> string array +(** return last 10 lines of a file *) + +val tail_n : t -> int -> string -> string array +(** return last N lines of a file *) + +val df : t -> string +(** report file system disk space usage *) + +val df_h : t -> string +(** report file system disk space usage (human readable) *) + +val du : t -> string -> int64 +(** estimate file space usage *) +