Ubuntu: How to check the contents of a tape

 

To check the contents of a tape, insert the tape and run the following:

 

tar -tf /dev/[path to tape device]

 

e.g.:

 

tar -tf /dev/st0

 

Note that typically it’s a zero, not a letter o, at the end.