head
Description:
[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.0.54" ) ]
public string[] head (string path) throws Error
[ Version ( since = "1.0.54" ) ]
public string[] head (string path) throws Error
return first 10 lines of a file
This command returns up to the first 10 lines of a file as a list of strings.
Parameters:
this |
A GuestfsSession object |
Returns:
an array of returned strings, or NULL on error |