MT(1) General Commands Manual MT(1) NAME mt - control magnetic tape drive operation SYNOPSIS mt [-V] [-f device] [--file=device] [--rsh-command=command] [--version] operation [count] DESCRIPTION This manual page documents the GNU version of mt. mt performs the given operation, which must be one of the tape operations listed below, on a tape drive. The default tape device to operate on is taken from the file /usr/include/sys/mtio.h when mt is compiled. It can be overridden by giving a device file name in the environment variable TAPE or by a command line option (see below), which also overrides the environment variable. The device must be either a character special file or a remote tape drive. To use a tape drive on another machine as the archive, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file). The available operations are listed below. Unique abbreviations are accepted. Not all operations are available on all systems, or work on all types of tape drives. Some operations optionally take a repeat count, which can be given after the operation name and defaults to 1. eof, weof Write count EOF marks at current position. fsf Forward space count files. The tape is positioned on the first block of the next file. bsf Backward space count files. The tape is positioned on the first block of the next file. fsr Forward space count records. bsr Backward space count records. bsfm Backward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark. fsfm Forward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark. asf Absolute space to file number count. Equivalent to rewind followed by fsf count. seek Seek to block number count. eom Space to the end of the recorded media on the tape (for appending files onto tapes). rewind Rewind the tape. offline, rewoffl Rewind the tape and, if applicable, unload the tape. status Print status information about the tape unit. retension Rewind the tape, then wind it to the end of the reel, then rewind it again. erase Perform long erase of tape. If count is 0, perform short erase of tape (some devices do not support this). mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name given was invalid, or 2 if the operation failed. OPTIONS -f, --file=device Use device as the file name of the tape drive to operate on. To use a tape drive on another machine, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file). --rsh-command=command Notifies mt that it should use command to communicate with remote devices instead of /usr/bin/ssh or /usr/bin/rsh. -V, --version Print the version number of mt. ################################## DD(1) Dienstprogramme für Benutzer DD(1) BEZEICHNUNG dd - Umwandeln und Kopieren einer Datei ÜBERSICHT dd [OPERAND]… dd OPTION BESCHREIBUNG Kopieren einer Datei, Umwandlung und Formatierung gemäß der Operanden. bs=BYTE Lesen und Schreiben von bis zu BYTE Byte auf einmal cbs=BYTE BYTE Byte auf einmal umwandeln conv=UMWANDLUNGEN Datei gemäß kommagetrennter Symbolliste umwandeln count=N Nur N Eingabeblöcke kopieren ibs=BYTE Lesen von bis zu BYTE Byte auf einmal (Voreinstellung: 512) if=DATEI Aus DATEI statt von der Standardeingabe lesen iflag=SCHALTER Gemäß der kommagetrennten Symbolliste lesen obs=BYTE BYTE Byte auf einmal schreiben (Voreinstellung: 512) of=DATEI In DATEI statt in die Standardausgabe schreiben oflag=SCHALTER Gemäß der kommagetrennten Symbolliste schreiben seek=N N obs‐große Blöcke am Anfang der Ausgabe überspringen skip=N N ibs‐große Blöcke am Anfang der Eingabe überspringen status=STUFE bezeichnet die STUFE der Informationen, die in die Standard-Fehlerausgabe geleitet werden. »none« unterdrückt alles bis auf Fehlermeldungen, »noxfer« unterdrückt die finalen Übertragungsstatistiken, »progress« zeigt periodische Übertragungsstatistiken an. N und BYTE können folgende multiplikative Endungen tragen: c=1, w=2, b=512, kB=1000, K=1024, MB=1000*1000, M=1024*1024, xM=M, GB=1000*1000*1000, G=1024*1024*1024, und so weiter für T, P, E, Z, Y. Jedes Symbol für UMWANDLUNG kann sein: ascii Von EBCDIC in ASCII ebcdic Von ASCII in EBCDIC ibm Von ASCII in alternatives EBCDIC block Mit Zeilenumbrüchen terminierte Datensätze durch Leerzeichen bis zur cbs‐Größe auffüllen unblock Nachlaufende Leerzeichen in Datensätzen von cbs‐Größe durch Zeilenumbrüche ersetzen lcase Großbuchstaben in Kleinbuchstaben ändern ucase Kleinbuchstaben in Großbuchstaben ändern sparse Bei NUL-Eingabeblöcken probieren zu suchen statt in die Ausgabe zu schreiben swab Jedes Paar von Eingabebytes vertauschen sync Jeden Eingabeblock mit NULLen zur ibs‐Größe auffüllen; wenn dies zusammen mit »block« oder »unblock« benutzt wird, mit Leerzeichen statt NULLen auffüllen excl Wenn die Ausgabedatei schon existiert, abbrechen nocreat Ausgabedatei nicht anlegen notrunc Ausgabedatei nicht abschneiden noerror Nach Lesefehlern fortfahren fdatasync Vor Beendigung Daten der Ausgabedatei physisch schreiben fsync Genauso, aber zusätzlich auch die Metadaten schreiben Jedes Symbol für FLAG kann sein: append Anfügemodus (nur für die Ausgabe sinnvoll; conv=notrunc empfohlen) direct Direkte Ein‐/Ausgabe für Daten benutzen Verzeichnis Abbrechen, wenn kein Verzeichnis dsync Synchronisierte Ein‐/Ausgabe für Daten benutzen sync Genauso, aber auch für Metadaten fullblock Volle Eingabeblöcke ansammeln (nur iflag) nonblock Nichtblockierende Ein‐/Ausgabe benutzen noatime Die Zugriffszeit nicht aktualisieren nocache fordert die Leerung des Zwischenspeichers an. Siehe auch oflag=sync noctty Das kontrollierende Terminal nicht von der Datei zuweisen nofollow Symbolischen Links nicht folgen count_bytes »count=N« als eine Byte-Anzahl behandeln (nur bei iflag) skip_bytes »skip=N« als eine Byte-Anzahl behandeln (nur bei iflag) seek_bytes »seek=N« als eine Byte-Anzahl behandeln (nur bei oflag) Schickt man einem laufenden »dd«‐Prozess ein USR1‐Signal, gibt dieser auf der Standardfehlerausgabe Eingabe‐/Ausgabe‐Statistiken aus und fährt mit dem Kopieren fort. Optionen sind: --help Diese Hilfe anzeigen und beenden --version Versionsinformation anzeigen und beenden