Advanced

Abbreviating the "mt" command

Story: My sysadmin toolboxTotal Replies: 0
Author Content
Skapare

Mar 31, 2006
7:07 AM EST
The "mt" command takes the value of an environment variable named TAPE as the name of the tape device it will use. If you have only one tape device, then all you need to do is set that environment variable once at the start of your session, or include it in your shell initialtization.

For sh, bash, and ksh users: export TAPE=/dev/st0

for csh and tcsh users: setenv TAPE /dev/st0

Then you can just omit the -f option and tape name on all your "mt" commands. It's still usable in case you have a 2nd tape device you occasionally use.

Post a reply to this thread:

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post