LIFDIR Manual Page


NAME

lifdir - print a directory of a LIF disk or image

SYNOPSIS

lifdir <device> lifdir -f <LIF image file> lifdir -?

DESCRIPTION

lifdir reads the directory of a physical LIF disk or a LIF disk image and prints this directory to standard output. If the volume label is non-blank, then this is printed first, followed by the date of formatting if this is valid. Each subsequent line contains the details of a single file, consisting of the file name, file type (see the FILE TYPE section below), the number of bytes in the file and the total number of bytes occupied by the blocks of that file, and finally the file time and date stamp if this is valid.

OPTIONS

-f Produce a directory listing for a LIF disk image file rather than a physical device. -? Print a message giving the program usage to standard error.

FILE TYPES

The following file types are recognised by this version of lifdir TEXT An HP Text file (or LIF1 format file).

SDATA

An HP71B SDATA file or HP41C data file.

DATA71

An HP71B data file.

BIN71

An HP71B binary program file.

LEX71

An HP71B language extension file.

KEY71

An HP71B keyboard definition file.

BASIC71

An HP71B tokenised BASIC program.

FORTH71

An HP71B forth dictionary file.

WALL41

An HP41C Write-All file.

KEY41

An HP41C key assignment file.

STAT41

An HP41C status file.

PROG41

An HP41C program.

TEXT75

An HP75 text file.

APPT75

An HP75 appointments file.

LEX75

An HP75 language extension file.

BASIC75

An HP75 tokenised BASIC program.

VCALC75

An HP75 Visicalc worksheet Unknown file types are printed as a 4-digit hex number giving the value of the 2 file type bytes from the directory. See lif_dir_utils.c for details of the file types.

EXAMPLES

If disk1.lif is a LIF disk image file then lifdir -f disk1.lif will print a directory listing of that image file. Similarly, if /dev/fd1 contains a physical LIF disk then lifdir /dev/fd1 will print a directory listing of that disk.

REFERENCES

The LIF disk directory format is documented in the HP-IL Interface Owners Manual for the with further details (particularly HP41 and HP75 file types) in the HP-41 Synthetic Quick Reference Guide (Jeremy

BUGS

No attempt has been made to handle bad track replacements on a LIF disk. Not all file types have been tested.

AUTHOR

lifdir was written by Tony Duell, ard.p850ug1@gmail.com and has been placed under the GNU Public License version 2.0