How to rewind tapes fast and save typing time

Posted on in Categories Linux, Shell scripting, Sys admin, Tips, UNIX last updated September 25, 2006

Following tip submitted by Chirag:

Most of us use mt command to rewind tapes:
mt -f /dev/st0 rewind

This is old way; you need to type mt command and other options. Instead of using mt use following command:
# < /dev/st0

Thanks chirag this is a neat shortcut for rewinding magnetic tape. This command works with other UNIX oses as well.

In addition, my favorite shortcut to create an empty file:
$ >file.txt

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment