strings


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.0.22" ) ]
public string[] strings (string path) throws Error

print the printable strings in a file

This runs the strings(1) command on a file and returns the list of printable strings found.

The strings command has, in the past, had problems with parsing untrusted files. These are mitigated in the current version of libguestfs, but see "CVE-2014-8484" in guestfs(3).

Parameters:

this

A GuestfsSession object

Returns:

an array of returned strings, or NULL on error