How to rewind tapes fast and save typing time

last updated in Categories Linux, Shell scripting, Sys admin, Tips, UNIX

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, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):