Listing archive contents with tar

Question:
List the content of the /home/bob/logs.tar archive and save the output in the /home/bob/tar_data.txt file.

Answer:

tar tf /home/bob/logs.tar > /home/bob/tar_data.txt
If you are getting:
tar: Removing leading `/' from member names
to overcome this do:
tar tPf /home/bob/logs.tar > /home/bob/tar_data.txt