Skip to content

"tar" command examples

Create archive.tar from files foo and bar:

tar -cf archive.tar foo bar

List all files in archive.tar verbosely:

tar -tvf archive.tar

Extract all files from archive.tar:

tar -xf archive.tar