Friday, September 14, 2012

How to delete a file from tar file(archive) without untar it?

We can use the option '-f" for it

syntax
tar -f {file_name.tar} --delete file1 file2 file3

tar -f myfile.tar --delete index.php folder1/test/testfile.php folder2/test_folder/*

No comments:

Post a Comment