2) Compress directory using the tar command: SCP stands for âsecure copyâ â with âsecureâ referring to the encryption of the data transfer. To verify any tar or compressed archived file we use the option W ( verify ). To do this, just use the following examples of commands. ( Note: You cannot do verification on a compressed ( *.tar.gz, *.tar.bz2 ) archive file). 18. Check the Size of the tar, tar.gz, and tar.bz2 Archive File Compress In this article, we will be going to review and discuss various tar command examples including how to create archive files using (tar, tar.gz, and tar.bz2) compression, how to extract archive file, extract a single file, view content of the file, verify a file, add files or directories to the existing archive file, estimate the size of tar archive file, etc. z - gzip'd the archive. gunzip test.txt. Creating a .tar.gz File in Linux. For example: find . You can extract a tarball to a specific directory in the following manner: tar xvf tar_file -C destination_directory. Using tar The same command can also be used to provide multiple files or directories. Patterns affect the directory and all its subdirectories. Linux split ⦠Curl Command in Linux