Creating a tar.gz file from Shell

Many occasions we need to create a tar.gz file from the Shell

tar -pczf <archive_file>.tar.gz <path_to_directories_and_files>

Leave a Reply

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