Content-type: text/html
ltf option [keys] file...
The actions of
ltf
are controlled by one of the following
option characters that must appear as the first command-line argument:
-c,
-H,
-t,
-x, and
-i.
Creates a new volume assigning an interchange file name to
the files on the volume, that is,
ltf
initializes the volume
and writes each named file onto the output file. Then
ltf
assigns an interchange file name to the files being created on the volume.
This interchange file name is a name that can be recognized by a system other
than this operating system. (Not all file names allowed in this operating
system are permissible in all forms of ANSI volumes.) This file name is 17
characters in length and includes only capital letters and the
``a''
characters, which are listed in
ltf(4). It is formed by converting all
lowercase letters to uppercase, converting non-``a''
characters
to uppercase Z, and truncating the resultant string to 17 characters. If ANSI
Version 4 volumes are being used, the original file name is preserved in HDR3
through HDR9 and EOF3 through EOF9. For further information, see
ltf(4).
Displays help messages for all options and keys.
Lists each named file on the specified volume. If no file
argument is given, information about all files on the volume is provided.
If
-t
is used without
v
or
V
(verbose keys), the interchange file names are also included in
the list.
Extracts each named file from the volume to the user's current
directory. If no file argument is given, the entire content of the volume
is extracted. If the
p
key is not specified when extracting
files from a volume written by a Tru64 UNIX system, the files are restored
to the current user and group IDs and to the mode set by the
umask(2)
system call.
Initializes an ANSI labeled magnetic volume in accordance
with the ANSI X3.27-1978 Standard for Magnetic Tape Labels and File Structure
for Information Interchange.
The following optional keys can be specified to enable or disable ltf actions as specified: Outputs an ANSI-compatible Version 3 format volume. This key can be used with the -c option only. The default version is 4. For further information, see ltf(4). Writes to a tape volume the file that a symbolic link points to instead of creating the symbolic link on a volume. The file written to the tape now has the same name as the symbolic link. This key can be used with the -c option only. When extracting, if a symbolic link exists in the current directory that has the same name as a file on the tape volume, the link is followed and the file that the symbolic link currently points to is overwritten with the extracted file. To avoid overwriting files, use the w key. Omits directory blocks from the output volume. When creating a volume, the directory files are omitted, and when listing or extracting, the V key is disabled. Omits usage of optional headers HDR3 through HDR9 and EOF3 through EOF9. For further information, see ltf(4). If a file is created on a Tru64 UNIX system without the use of the O key, these file headers contain the complete Tru64 UNIX disk file name. Not all non-Tru64 UNIX systems are able to process volumes containing these header labels. Thus, it is helpful to use this qualifier to avoid unnecessary error messages when planning to use other systems. Restores files to original mode, user ID and group ID that is written on the tape volume. This key can be used with the -x option on Tru64 UNIX files and by the superuser only. Displays long form information about volume and files. Normally, ltf operates with little terminal output.
t(1,1) rw-r--r-- 103/3 owner Feb 2 12:34 2530 bytes <cc >D file1
t(2,1) rw-r--r-- 103/3 owner Jun 29 09:34 999 bytes <com>D file2
t(3,1) rwxrwxrwx 293/10 name Jan 24 10:20 1234 bytes <bin>F name
t(4,1) --xrwx--- 199/04 theowner Jan 24 10:21 12345 bytes <asc>D
long file name
The following optional keys require an additional argument to be specified on the command line. If two or more of these keys are used, their respective arguments are to appear in the exact order that the keys are specified. Sets the blocking factor to size. This specifies the maximum number of bytes that can be written in a block on a volume. If no value is specified, size defaults to 2048 bytes. The maximum size is 20480 bytes and the minimum size is 18 bytes. The B key need only be specified with -c.
The
ltf
command reads and writes single-volume Versions 3 and 4 ANSI-compatible
tape volumes. The
file
argument specifies each
file or directory name that is to be processed. If a directory name is specified,
the complete directory tree is processed.
The
ltf
command does not support floppy diskettes
or multi-volume tapes.
Diagnostics are written to the standard error file. They come in four forms: fatal errors, warnings, information, and prompts. The ltf command terminates when it detects that a fatal error has occurred.
The diagnostics are intended to be self-explanatory. Their general format is:
ltf: FATAL > a fatal error message ltf: Warning > a warning or advisory message ltf: Info > an information message ltf: a prompt asking for input
This example creates a new volume for file1, file2, and file3 using device /dev/rmt0h (f key) and a blocking factor of 100 (B key). ltf -cfB /dev/rmt0h 100 file1 file2 file3
ltf(4)