From: Bill Cunningham on
I have mt on my linux system and I think it's from back when tapes were
used. How was mt used? Was it to create executables or slpit up a directory
tape? I would like to create a file that knows where what execuatables and
binaries are where?

Bill


From: Beej Jorgensen on
Bill Cunningham <nospam(a)nspam.invalid> wrote:
> If I have a file 3/4 of a meg in length for example. I want to find in
>it all the files in bin and so on. if that file is a tarball or whatever.

"Find all files starting from the root directory, with a size of at
least 750K and at most 1000K, then print the file's path and size in
kilobytes":

find / -size +750k -size -1000k -printf "%p: %kK\n"

find is extremely powerful. Any time you want to find files with
certain attributes and do things to them, it's the utility to use.

-Beej

From: Mark Bluemel on
On 22 Sep, 02:30, "Bill Cunningham" <nos...(a)nspam.invalid> wrote:
>     I have mt on my linux system and I think it's from back when tapes were
> used. How was mt used?

It handled tape drives, rewinding tapes, forward spacing over archives
on tapes and so on.

> Was it to create executables

No

> or slpit up a directory tape?

What is a directory tape? If you mean an archive written with tar or
cpio, or something similar, no "mt" didn't do that. You process an
archive, in general, with the tool that wrote it - so tar or cpio, or
whatever.

> I would like to create a file that knows where what execuatables and
> binaries are where?

If you mean (as your later post suggests) you have a tarball file, you
can produce an index from it using "tar -tvf <filename>".

If you have a file and don't know what it is, you can often get a good
idea with the "file" command.
From: Bill Cunningham on

"Mark Bluemel" <mark.bluemel(a)googlemail.com> wrote in message
news:ab750a2a-89d2-4c78-8cf8-dbb8e9984f3e(a)p9g2000vbl.googlegroups.com...
On 22 Sep, 02:30, "Bill Cunningham" <nos...(a)nspam.invalid> wrote:
> I have mt on my linux system and I think it's from back when tapes were
> used. How was mt used?

It handled tape drives, rewinding tapes, forward spacing over archives
on tapes and so on.

> Was it to create executables

No

> or slpit up a directory tape?

What is a directory tape? If you mean an archive written with tar or
cpio, or something similar, no "mt" didn't do that. You process an
archive, in general, with the tool that wrote it - so tar or cpio, or
whatever.

> I would like to create a file that knows where what execuatables and
> binaries are where?

If you mean (as your later post suggests) you have a tarball file, you
can produce an index from it using "tar -tvf <filename>".

If you have a file and don't know what it is, you can often get a good
idea with the "file" command.

Ok I have old V7 tapes. That have been uploaded I don't have any tapes I
own of course. I know dump and restor or restore was used alot. I know
several different parts of this tape were and still are if you use a
simulator, mknod, restor and I know their addresses in the tape. This is
just a file that is compressed in .z or . Z format.

Bill

Can someone help me then with just mt and how it was used in old unixes
that ran of DECs?

Bill


From: Ben Bacarisse on
Beej Jorgensen <beej(a)beej.us> writes:

> Bill Cunningham <nospam(a)nspam.invalid> wrote:
>> If I have a file 3/4 of a meg in length for example. I want to find in
>>it all the files in bin and so on. if that file is a tarball or whatever.
>
> "Find all files starting from the root directory, with a size of at
> least 750K and at most 1000K, then print the file's path and size in
> kilobytes":
>
> find / -size +750k -size -1000k -printf "%p: %kK\n"
>
> find is extremely powerful. Any time you want to find files with
> certain attributes and do things to them, it's the utility to use.

I think (though I am never entirely sure) that Bill wants to find
files *inside* a tarball "or whatever". If so, he can extract the
files to a temporary location and then use your find command on that.
I think this is how mt(1) came into it to start with.

The "or whatever" part has no solution unless the whatever can be
pinned down.

Bill: mt(1) is for controlling tape devices. Unless you actually have
one of these you probably won't need to use it. Of course, you said
you have PDP-11 tapes so maybe you really do need it. You'd need a
suitable tape drive though...

--
Ben.