tar command examples

tar command examples

tar – Tape Archive. An utility to archive files

tar -cf archive.tar foo bar

# Create archive.tar from files foo and bar.

 

tar -tvf archive.tar

# List all files in archive.tar verbosely.

 

tar -xf archive.tar

# Extract all files from archive.tar.

Leave a Reply

Your email address will not be published. Required fields are marked *