utility-option

tar -tf

List archive members. A successful listing does not establish content integrity or recoverability.

Formal Syntax & Structure

bash syntaxbash
tar -tf ARCHIVE

Return Value

exit status

List archive members. A successful listing does not establish content integrity or recoverability.

Working Example

Example Snippetbash
mkdir -p sourceprintf 'hello\n' > source/note.txttar -cf backup.tar -C source note.txt || exit 1tar -tf backup.tar
Bash Reference