LsVarTmp - command ls -ln /var/tmp

The ls -ln /var/tmp command provides information for the listing of the /var/tmp directory.

Sample input is shown in the Examples. See FileListing class for additional information.

Sample directory list:

/var/tmp:
total 20
drwxr-xr-x.  2 0 0 4096 Mar 26 02:25 a1
drwxr-xr-x.  2 0 0 4096 Mar 26 02:25 a2
drwxr-xr-x.  2 0 0 4096 Apr 28  2018 foreman-ssh-cmd-fc3f65c9-2b35-480d-87e3-1d971433d6ad

Examples

>>> "a1" in ls_var_tmp
False
>>> "/var/tmp" in ls_var_tmp
True
>>> ls_var_tmp.dir_entry('/var/tmp', 'a1')['type']
'd'
class insights.parsers.ls_var_tmp.LsVarTmp(*args, **kwargs)[source]

Bases: CommandParser, FileListing

Warning

This class is deprecated and will be removed from 3.5.0. Please use the insights.parsers.ls.LSlanFiltered instead.

Parses output of ls -ln /var/tmp command.