tar -rf archive.tar newfile.txt

Category: Archiving & Compression

tar -rf archive.tar newfile.txt

Append a file to an existing tar archive

Adds a new file to an existing tar archive. -r means 'append'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.